I write code in C and C++ all day long. Part of the pleasure of using Visual Studio is support for add-ins. And if there's one add-in I have to have for C++/C it's Visual Assist.
What can it do? Let me give you my favorite two examples.
I happen to be obsessed with names in my code: Names of variables, names of methods, whatever. For me, probably THE single most helpful feature in Visual Assist is that with Refactor/Rename I can change method names easily.
Refactor/Document... also a major time saver.
And . to -> correction... this saves my life I C/C++.
This add-in is just plain helpful. Personally, I'd be very sad to have to live without it.
Provides a whole host of productivity enhancing features. I use it mainly for C# but when I delve into C/C++ world it's even more useful. The only downside is that some builds can be a little buggy but on the whole it greatly helps with productivity. Highly recommended.
It was such a great experience that I worked with Visual assist. At the very first time, I downloaded this plugin because of my co-worker's recommendation , but now I can't imagine the coding without Visual Assist. I strongly recommend this Visual Assist.
I first met VA by my professor and It gave me lots of advantages. Especially, grammar recommendation features are excellent. With Visual Assist, you can improve your coding speed at least 30% as I did. :)
This is a must-have for every C++ programmer. There is also excellent support for C# as well - and in several cases I prefer to use Visual Assist features over ReSharper.
My favorite features: The VA Navigation Bar, which is superior to the Visual Studio one. The spell checking is top-notch. VA Snippets are much easier to use than the built-in ones.
The C++ folks will find the . to -> correction very handy, as is the debugger step filter. I use Atomineer Utilities for documenting C++ code (Make sure VA's auto-extend comment feature is disabled).
When I use a coworker's PC to troubleshoot something, I find myself looking for features that are missing, barely realizing that it was a feature of VA and not the IDE.
In conjunction with ReSharper (more complimentary than you think) VA is smart enough to configure itself not to compete if similar features are configured in that product, so there are very few undesired conflicts between AddIns. I wish all other AddIns were as generous with their compatibility with other AddIns.
Visual Studio 6 is still supported! For those of us stuck using Visual Studio 2008 for smart device development, there is no comparison.
This is a great extension but I have a problem with some simple C code. The "extract method" fails and I am keen to know if this is my error or if it can be fixed.
Below is a very simple loop() just to test the "method extract". If I attempt to extract the code inside the for() then an error is displayed and the extracted method is not added to the source code.
The error suggests the most common cause is a readonly source file but this is not the case. The intellisense is working corectly and providing help so it isn't a VS/Code issue.
int a = 0;
int b = 0;
int c = 0;
The reason for the C code is that this is an Arduino program which is supported in Visual Studio because it is just C/C++
I just tried that example and it worked successfully in my environment. What version of VS are you using? Is loop() in a header file or a source file? If a header file, is there are corresponding source file and is it read-write?
Thanks for the reply. I suspect the problem is due to the file extension being .ino or .pde. I will test shortly but I think it will be okay based upon the following info...
HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet8 Press Rebuild on the Performance tab of the Visual Assist X options dialog and restart your IDE NOTE:-Replace 8.0 with 10.0 if you use VS 2010.Replace 8.0 with 9.0 if you use VS 2008.Replace 8.0 with 7.1 if you use VS.NET 2003.Replace 8.0 with 7.0 if you use VS.NET 2002.Replace VANet8 with VANet10 for Visual Studio 2010.Replace VANet8 with VSNet9 if you use VS2008.Replace VANet8 with VSNet if you use VS.NET 2003.Replace VANet8 with VANet7.0 if you use VS.NET 2002
VSPain, we're sorry to hear of the trouble you've experienced with update notices. You can disable our update notices on the Startup node of the VA Options dialog. We do have logic that is supposed to notify you when an update is not applicable to your license. It is possible that you received an update notification from the Visual Studio Extension Manager. Unfortunately, the Extension Manager has no knowledge of your license status and you will continue to receive notifications from it unless you disable "Automatically check for updates to installed extensions" on the Extension Manager page of the Visual Studio Options dialog. The Visual Studio Gallery does not allow extensions to opt out of update notifications. Please encourage Microsoft to allow extensions to opt out of update notices since they only have a one-size-fits-all implementation that really only suits free extensions. Thanks.
If you are running Visual Studio 2010 with administrative privileges, you will need to explicitly allow extensions to run:
Tools | Options | Environment | Extension Manager | "Load per user extensions when running as administrator"