I keep swearing every time my maintenance runs out. I come into it thinking, I don't need to renew I am happy. Then I look at the next release and they do it again. This time was the step filter. Now when I step into a method, I don't get bogged down in the std library. So yeah, take my money as they keep making Visual Studio better.
This is a fundamental product for native c++ development. you cannot develop c++ with VS if you have not that: it makes your life easier and refactor doable. there are of course things that are missed i wanted, but the team is quite responsive and they release very often improvements. Also spaghetti is really great but still in beta at the time i'm writing.
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"