Visual Studio Code – NEW FEATURES: 7 Editor Improvements (Code Folding, IntelliSense, Indentation, Ruler, & More!)

The Visual Studio Code 0.10.10  release features a fiesta of Editor improvements, including…

Editor

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.

Source Code Folding

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).

IntelliSense Performance

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.

Indentation

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.

indentation status

You can adjust the indentation size and toggle between tabs and spaces with three new actions:

indentation actions

Ruler Settings

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

With the adoption of the Salsa JavaScript language service as the default, we could streamline our usage of web workers and now have a dedicated web worker that is language agnostic, which we use for diff computation, link detection or simple textual completions. This reduces the latency of these computations and is memory friendly, as it automatically shuts down when not needed.

 

 

Check out all the new features and update to Visual Studio Code v0.10.11:

https://code.visualstudio.com/updates

 

You’re looking awfully visual and studious today,

– Ninja Ed

Comments

  • Anonymous
    May 08, 2016
    FEAUTRED BLOG POSTS:=======================Ed's Book - Learn How to Program with Small Basic:https://blogs.msdn.microsoft.com/user_ed/2016/03/03/early-access-book-learn-to-program-with-small-basic/=======================Computers Today (part 1 of 6):http://blogs.msdn.com/b/user_ed/archive/2016/01/16/computers-today.aspx=======================Girls in computer programming... why it matters!!!http://blogs.msdn.com/b/user_ed/archive/2016/01/23/cs-spotlight-girls-in-computer-programming-why-it-matters.aspx=======================Why should I teach Java in Visual Studio Code?http://blogs.msdn.com/b/user_ed/archive/2016/02/05/why-should-i-teach-java-out-of-visual-studio-code-instead-of-out-of-eclipse-or-netbeans.aspx