The Visual Studio Code 0.10.10 release features a fiesta of Editor improvements, including…
Source Code Folding
The editor now contains a first implementation of code folding. You can turn the feature on and off with the
editor.folding configuration setting (File > Preferences > User Settings or Workspace Settings). Once enabled, you can collapse and expand code regions using the folding icons next to the line numbers. Regions that can be folded are shown with a
- icon, regions that are already folded with the
+ icon. The
- icon only shows when the mouse is over the gutter.
Additionally you can use the following commands from the commands menu (F1) or with keyboard shortcuts:
- Fold (Ctrl+Shift+[) folds the innermost uncollapsed region at the cursor
- Unfold (Ctrl+Shift+]) unfolds the collapsed region at the cursor
- Fold All (Ctrl+Shift+Alt+[) folds all region in the editor
- Unfold All (Ctrl+Shift+Alt+]) unfolds all regions in the editor
The folding regions are evaluated solely based on the indentation of each line. This first version does not yet support language agnostic folding regions, or folding markers. This is in discussion for an upcoming release (see issue #3422).
The IntelliSense widget underwent a full rewrite to address some performance problems. It now handles lists of 20,000 extensions in milliseconds, compared to the previous ~10 seconds of lag.
Initiated by user request #1228, we have added indentation status in the editor to help with 'tabs to spaces' conversion and vice versa. The Status Bar shows whether the Tab key will insert spaces or tabs and the current indentation size in characters.
You can adjust the indentation size and toggle between tabs and spaces with three new actions:
There is a new setting
editor.rulers available. For example, setting it to
[80, 120] will display two vertical rulers in the editor, one after the 80th character and one after the 120th character.
Default End of Line Sequence
A new setting
files.eol controls the default new line character when creating new files. It defaults to
\r\n on Windows and to
\n on Linux and OS X.
Word navigation and word separators
Word navigation and word deletion commands updated and now honor a new setting,
editor.wordSeparators, when deciding what is a word, regardless of the current language of the file.
Improved usage of web workers
Check out all the new features and update to Visual Studio Code v0.10.11:
You’re looking awfully visual and studious today,
– Ninja Ed