VSCode Code Folding - text-editor

I am trying to install or update a setting that allows me to minimize and maximize code blocks within VS Code. Similar to below and/or like Visual Studio:
https://www.flickr.com/photos/50988329#N02/25504022561/in/dateposted-public/
Just in case the image link doesn't work, I am speaking about the plus and minus signs/icons that you see next to the line numbers in Visual Studio.

The February Update (0.10.10) for VSCode just added support for code folding.
Try downloading that and giving it a try. You can enable or disable code folding with the editor.folding setting.

Related

VS Code Flutter shortcuts equivalent to Android Studio Flutter

I am looking for a few things to improve my productivity, Android Studio has these features and it really sped up my work, if you know any of these please share.
Ctrl+Shift+Space equivalent in VS Code Flutter. What it did in Android Studio was auto complete a statement. For example if I typed in if and then hit Ctrl+Shift+Space, the if condition code block would be completed for me automatically with () and {} after it, with putting the cursor within the condition.
Code snippets for things like for loops. On Android Studio you could type in iter and then Tab, it would create for (var _ in ) {} and automatically jump to both variables to fill their names on two Enter keystrokes.
These were great for me, please share if these exist in VS Code, as I understand it is supposed to be superior.
You should install dart extension for VSCode.
In order to prioritize the extension snippets and have these ones for the first suggestion, go to File/Settings/Text Editor/Suggestions and set Snippet Suggestions to top. Now it looks like

Android Studio does not perform automatic error detection

I'm using Android Studio 1.1.0 in Mac OS X 10.10. I noticed that when I wrote code like:
public void;
or even:
+ (bad) thisObjectiveCCodeShouleNeverCompileInJava:(ButSomehow *)itsNotComplaining
Android Studio didn't complain. Once I built it, Gradle showed the error, but the editor pane still did not. I attempted to use Navigate > Next Highlighted Error, I got the following balloon over my text cursor:
I let it sit for up to half an hour and still, no errors or warnings were ever highlighted. Similarly, placing the text cursor in/on a variable name does not highlight its usages in the file (but Edit > Find > Highlight Usages in File works fine).
I tried updating to 1.2.x, but I get this:
At one point, when attempting to Make Project, I got the following:
What's going on, and is there any way to fix this without reinstalling Android Studio from scratch?
Most of this is because I had Power Save Mode enabled. Unchecking this re-enabled error highlighting and other such features.

autoexp.dat not being read by visual studio 2012 debugger

I need to write a visualizer for some custom classes so I had a look at the autoexp.dat file.
If I make a change to a definition in this file I do not see this reflected in the debugger.
Has anyone else experienced troubles with the autoexp.dat file?
How can I overcome this?
Should I even be using it or should I be writing a .natvis file?
Thanks in advance
By default, Visual Studio 2012 ignores the contents of autoexp.dat. However, there is a workaround to force it to be used.
You can only do this while the debugger is not active. Inside Visual Studio, Click on TOOLS > Options > Debugging > Edit and Continue. There is an option to Enable native Edit and Continue--choose this option. This will disable the natvis files, and use autoexp.dat instead, as per the warning which appears.
The natvis file format appears to be more powerful, however, so if you are able to move to it, it may be worth your time to do so.
Copying autoexp.dat from Visual Studio 2010 to Visual Studio 2012 (Update 4) works just fine for me. Even with Edit and Continue disabled.

Syntax highlight fail on Classes in Visual Studio 2012

I recently installed Visual Studio on a laptop and the syntax highlight fails to change Classes colors.
I tried exporting and importing the full, complete set of settings and it is still looking like that.
EDIT
I tried those websites with schemes and decided to try one, the Humane scheme, and this is how the sample code looks in my laptop after installing those settings:
However, this is how it is supposed to look:
Note the lack of highlight in class names.
What could it be causing this?
I'm starting to think that's another setting at another place which causes this.
Finally, it worked by resetting user data, running this from the Visual Studio Command Prompt
devenv /Resetuserdata
Found the hint here:
https://stackoverflow.com/a/11988265/1213246
Changin syntax highlight could be done through the menu Tools - Options - Environment - Font & Colors. It's a try and test approach that is not much improved from earlier versions of Visual Studio.
Fortunately, today there are entire sites with themes that simply need to be choosen and installed
I suggest you to visit http://studiostyl.es/ where you can find thousands themes or, for more generic go to http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx

Resharper installed, now no automatic code prompts in immediate window

I've become accustomed to using ReSharper, so uninstalling it is not an option.
However 1 little thing that I would like to try fix is the immediate window, I used to get automatic intellisense prompts when for example typing myObject.
That seems to no longer be working (and only in immediate window while debugging) since I installed ReSharper. Any ideas on how to get it back?
Unfortunately, if you're using the ReSharper intellisense (instead of the Visual Studio one), it won't work. I remember reading somewhere that this is a known issue due to a limitation in the Visual Studio extensibility API. This also affects the watch dialog.
The only thing you could do is manually invoke intellisense each time using Ctrl-Space. Perhaps this issue will be solved in Visual Studio 2010.
The problem is ReSharper and there is no current any solution.
And the shortcut for intellisense-pop is Ctrl + Space, (not Ctrl + Alt + Space)

Resources