June 2016 (version 1.3)

1.3.1 Recovery build

To fix several issues, we're releasing a 1.3.1 recovery build. You can view the resolved issues here.

Downloads: Windows | OS X | Linux 64-bit .zip .deb .rpm | Linux 32-bit .zip .deb .rpm

June Release Summary

We're really excited about the June release of VS Code. We've made some big changes to Extension management (dedicated Extensions View) and added Tabs (tabbed editor panes). Other new features include global Search and Replace, improved Drag and Drop and optional indentation guides. All of this along with enhancements to existing features like the Integrated Terminal and delivering a set of important bug fixes.

Here are the highlights:

Tabs : Tabbed editor panes allow you to quickly navigate to your files and organize your workbench.

: Tabbed editor panes allow you to quickly navigate to your files and organize your workbench. Extensions : New in-product Extensions View to quickly find, install and manage your extensions.

: New in-product Extensions View to quickly find, install and manage your extensions. Workbench : Enhanced Drag and Drop, Preview Editors to conserve your editor panes, and multiple Integrated Terminals.

: Enhanced Drag and Drop, Preview Editors to conserve your editor panes, and multiple Integrated Terminals. Editor : Global Search and Replace, Indent Guides, Problems panel to view errors and warnings.

: Global Search and Replace, Indent Guides, Problems panel to view errors and warnings. Languages : Better, more complete Emmet support, Atom JavaScript grammar extension.

: Better, more complete Emmet support, Atom JavaScript grammar extension. Debugging : Lots of improvements including support for attaching to running Node.js processes and changing variable values during a debug session.

: Lots of improvements including support for attaching to running Node.js processes and changing variable values during a debug session. Extension Authoring: A new contribution point for menu bars and context menus. New APIs to open non-text resources and add editor decorator attachments.

Tabs

With this release, VS Code shows open files as Tabs in the title area above the editor. You can move Tabs around via Drag and Drop to organize your files or right-click on a Tab to perform useful file specific actions.

If you prefer not to use Tabs, you can disable them through the workbench.editor.showTabs setting.

When there is not enough available space to show all files, you will see Tabs overflowing to the left and right. You can always use the mouse to scroll left and right across all tabs. The little overflow icon (see image below) is enabled as soon as there are Tabs outside of the visible view. Clicking on the overflow icon shows a list of all Tabs opened in the group.

You can use the new workbench.editor.openPositioning setting to control where new editors should open. By default they open to the right of the active Tab, but you can change this to open to the left, or to the beginning or end of all editors.

Open Editors View

The new OPEN EDITORS view in the Explorer is the replacement to the previous WORKING FILES view.

The OPEN EDITORS view is a visual representation of the editor (open file) stacks:

Each editor group with the editors that belong to it is shown.

Clicking on an editor will make it active and open it in the corresponding group.

Top level actions to close all or save all open editors.

Editor level actions to close or save an editor.

Context menu actions provide more refined actions.

It is possible to drag and drop editors between editor groups or from the Explorer

You can hide the OPEN EDITORS view by setting the number of visible items to 0, with "explorer.openEditors.visible": 0 .

Note: Since the WORKING FILES view has been deleted, please refer to this issue to get an overview of the new or changed command identifiers.

As a preparation for enabling Tabs in the workbench, we revisited how you can interact with editors in VS Code. Many users coming from other tools were confused by some of the editor (open file) behavior in VS Code.

For example:

Closing a dirty editor (an editor with an unsaved file) did not prompt for saving.

Closing an editor, closed the entire group without revealing the previous editor.

The editor history showed a list of all editors ever opened and not a list of editors you opened in a group.

WORKING FILES view in the Explorer was a confusing concept.

With editor stacks, we've tried to address these issues:

You can open up to 3 editor groups side by side and each group contains a stack of editors .

side by side and each group contains a . Every time you open an editor, it is added to the top of the stack.

Closing an editor from a group reveals the editor that was previously opened in that group until the last editor closes and the group hides.

You get prompted to save for dirty editors.

Use ⌃Tab (Windows, Linux Ctrl+Tab) to bring up a list of most recently used editors of a group for navigation. Use the View: Show All Editors command to show a list of all open editors across all groups.

Note that the behavior of editor stacks is independent from having Tabs enabled or not. You will benefit from these changes even if you don't want to use Tabs.

Note: Due to the large conceptual impact of editor stacks, many command ids have been renamed and new commands introduced. Please refer to this issue that documents the changes. It also provides guidance if you liked the previous behavior and explains how to change key bindings back to the old behavior.

Extension Management

We have introduced a new Extensions View to improve finding, installing, and updating VS Code extensions.

To display the Extensions View, click the Extensions View icon or press ⇧⌘X (Windows, Linux Ctrl+Shift+X):

By clicking on the ... More Actions button, it is possible to show:

The list of currently installed extensions

The list of outdated extensions that can be updated

The list of recommended extensions based on your workspace

The list of globally popular extensions

Clearing the search box, shows the list of installed extensions.

Browsing through a list of extensions, it is possible to install, uninstall or update them. Clicking on an extension will display the detailed description in the editor area.

Workbench

Errors and Warning in the Problems panel

With the June release, we now offer a new Problems panel, docked at the bottom of VS Code, that shows errors, warnings and other information generated by different sources like language servers, linters and others. In previous releases, we showed the errors and warnings in the quick box at the top of the editor. We have received feedback from users that this made it difficult to review errors and warnings while editing files. The new panel makes it easy to navigate through your errors and warnings and fix them while the editor is still open.

A filter box is provided to search and filter among the problems shown. You can either filter by type or by text. For example, 'errors' will filter for all problems of type error. 'character' will filter for problems with messages containing the word 'character'.

You can open the Problems panel by:

Using ⇧⌘M (Windows, Linux Ctrl+Shift+M )

From the View | Problems menu

| menu From the View > Show Problems command in the Command Palette

The key binding ⇧⌘M (Windows, Linux Ctrl+Shift+M) that was used to show errors and warnings in the quick open/quick box will now open the Problems panel.

By default, the Problems panel scrolls and shows problems for your active file. If you don't want this automatic reveal behavior, you can disable it through a setting problems.autoReveal . Set problems.autoReveal to false to prevent your Problems view from changing as you switch between active files.

Note: This view is just a representation of markers generated by the language servers or linters or build tasks or any external builders configured in or outside your workspace. You have to configure or customize them appropriately in order to see the expected problems.

With all the work on Tabs, we also looked at improving the Drag & Drop support in the editor. We always allowed you to drop files from outside VS Code into the editor to open the files and now there is a lot more that you can do:

Drop to Split

Drag some files to the left or right area of an editor to open it to the side of that editor. You can either drag from the Explorer or a Tab if Tabs are enabled.

Drop Feedback

Whenever you are dragging files or a Tab over the editor area, you now get drop feedback to indicate the target position of the drop.

Drag from Explorer and Opened Editors view

You can now drag a file or editor from the Explorer and the OPEN EDITORS view to the editor space to open it at a specific location.

Preview Editors

Closely related to editor stacks and Tabs are preview editors. If you are browsing many files, you might not want to see a Tab opened for each file you open. Preview editors help reduce the number of opened editors (and Tabs) by reusing the current editor. A file will open in preview mode if you open it by single clicking in the Explorer. As long as the editor stays in preview mode, other files will open in the same location as the preview editor.

Certain actions cause a preview editor to become a normal editor:

When you modify the contents of a file, the editor will be kept open.

The same is true for when you double-click on a file in the Explorer or inside a Tab or move a file to a specific editor group.

Preview editors are indicated using an italic font style.

We introduced new settings to control the behavior of preview editors:

workbench.editor.enablePreview to globally enable or disable preview editors.

to globally enable or disable preview editors. workbench.editor.enablePreviewFromQuickOpen to enable or disable preview editors when opened from quick box/quick open.

Integrated Terminal

The integrated terminal that was introduced in VS Code 1.2.0 has seen many improvements this release, the primary one being the ability to launch and use multiple terminals at the same time. Terminal instances can be added by hitting the plus icon on the top-right of the TERMINAL panel or by triggering the ⌃⇧` (Windows, Linux Ctrl+Shift+`) command. This creates another entry in the dropdown list that can be used to switch between them.

Several new commands were added to aid with management of the TERMINAL panel and its terminal instances.

They are:

workbench.action.terminal.focus : Focus the terminal. This is like toggle but focuses the terminal instead of hides it, if it is visible.

: Focus the terminal. This is like toggle but focuses the terminal instead of hides it, if it is visible. workbench.action.terminal.focusNext : Focuses the next terminal instance.

: Focuses the next terminal instance. workbench.action.terminal.focusPrevious : Focuses the previous terminal instance.

: Focuses the previous terminal instance. workbench.action.terminal.kill : Remove the current terminal instance.

The ability to run selected text in the current terminal has been added through the workbench.action.terminal.runSelectedText command.

To use this command, select text in an editor and run the command via the Command Palette:

The following improvements were also added:

Copy and paste on Linux and Windows is now available using Ctrl+Insert and Shift+Insert respectively. This is temporarily non-configurable until we can route custom copy/paste keybindings to the xterm.js library.

and respectively. This is temporarily non-configurable until we can route custom copy/paste keybindings to the xterm.js library. CJK characters should now use the correct width. Credit for this goes to @jerch in this PR.

Performance of the terminal has improved significantly and should no longer perform poorly when running commands that produce large output.

Ctrl+Left and Ctrl+Right now tells the underlying shell to jump over words in the input.

and now tells the underlying shell to jump over words in the input. Terminal cursor blinking is now enabled by default. It shares the configuration value with the editor's editor.cursorBlinking setting.

setting. A hollow cursor is shown when the terminal is not focused.

Terminal font size and line height can be customized via settings, thanks to a PR from @kisstkondoros.

Selection has been improved to now select the full line, contain no margin and also invert the text colors.

Arguments can be passed to the terminal shell on Linux and OS X using the terminal.integrated.shellArgs.* settings.

Command Palette: File: Open Recent in new Window

The command File: Open Recent from the Command Palette makes it very easy to quickly switch between previously opened folders or files. Usually the selected file or folder would open in the running instance. In this release, we added support to open into a new window if you select an entry while having the Ctrl ('Cmd' on Mac) key pressed.

Restore Full screen

A new setting window.restoreFullscreen has been added to open VS Code in full screen if it was previously closed in full screen mode.

Editor

Global Search and Replace

Global Search and Replace was one of the most requested features from our users. With this release, we enhanced our Search view to include Replace functionality so that you can replace text across multiple files. You can replace in all files or pick file by file or result by result. You can also exclude results or files and then perform replace on the rest. The Search view gives you a nice preview and clicking on a pending change will bring up the Diff editor view showing the file before and after replace.

Replace functionality can be accessed:

In the Search View by expanding the Search textbox

by expanding the Search textbox Using ⇧⌘H (Windows, Linux Ctrl+Shift+H ) , from the Edit | Replace in Files menu

, from the | menu Using Replace in Files command in the Command Palette

Note: Since Search has a limitation of showing a maximum of 2048 results, Replace currently has the same limitation.

Indent Guides

VS Code can now show indent guides, enabled with the editor.renderIndentGuides setting.

Suggestions for command identifiers

When authoring the keybindings.json file, you now get completions for the available commands.

Editor Font Zooming with mouse wheel

Thanks to @kisstkondoros, with PR #6990, after setting editor.mouseWheelZoom: true , it is possible to change the font size of the editors by pressing Ctrl ('Cmd' on Mac) and scrolling with the mouse wheel:

Multiline Find

We have added support for multiline Find and Replace:

Emmet

Thanks to some great support from Denis Malinochkin (@mrmlnc) through Pull Requests and testing help, we are now covering many more Emmet features (Wrap with Abbreviation, Remove Tag, Update Tag, Balance, Toggle Comment, ...).

Languages

Extract CSS/LESS/SCSS and JSON into extensions

The CSS, LESS, and SCSS language support has been refactored to be regular VS Code extensions. As all these languages are based on the same code base, they share the same language server. The language server runs in a separate node process, using the language server protocol to communicate with VS Code.

Extract Markdown into an extension

The Markdown language support has been refactored to be a regular VS Code extension. It uses the Markdown TextMate grammar for syntax highlighting source and renders the Markdown as HTML using the markdown-it library which implements the CommonMark Spec.

Atom JavaScript grammar

As an alternative to the built-in JavaScript grammar, you can now install the Atom JavaScript grammar. It differs from the built-in grammar in that it creates tokens for variable and function references which, if supported by the theme, can be colorized differently.

Debugging

Moveable Debug Toolbar

Initiated by this user request, it is now possible to drag the debug toolbar horizontally:

Changing Variable Value

We now support changing the value of simple variables if a debug extension supports this.

Node Debug is the first extension to do so:

A simple variable is a leaf in the variables tree, e.g. a variable, an object property, or an array element.

Show Variable Type on Hover

If a debug extension supports variable types, we now show the type when hovering over the variable name.

Step Back

If a debug extension supports step back we now expose a step back action and button:

OS specific launch configurations

Initiated by a user request, it is now possible to specify OS specific configurations inside a launch.json :

{ "type" : "node" , "request" : "launch" , "runtimeExecutable" : "mynode" , "windows" : { "runtimeExecutable" : "mynode.exe" } }

Node.js Debugging

Attach to Process

Node.js debugging now supports attaching to a Node.js process that has not been started in debug mode. This can be useful if you need to debug a production server that cannot always run in debug mode for performance reasons.

In order to attach to a Node.js process, you specify its process id via a processId attribute in an attach launch configuration.

Since it is not very practical to always having to edit the launch configuration before starting a debug session, we've introduced a new type of variable that can bind to an interactive UI, e.g. to a process picker:

Here is a launch configuration that uses the ${command:PickProcess} variable to let the user select a Node.js process before starting the debug session:

{ "name" : "Attach to Process" , "type" : "node" , "request" : "attach" , "processId" : "${command:PickProcess}" }

Extension Authoring

Menu Items and Context Menu Entries

We now allow extension writers to contribute to the Explorer context menu ( explorer/context ), the editor context menus ( editor/context ), and the editor title menu ( editor/title ).

It works in two steps:

Assign a title and an icon to a command using the enhanced commands contribution point. Create menu items using the new menus contribution point.

A menu item is defined for a menu location like editor/context and must at least specify the command to run. To avoid overly cluttered menus, a menu item should also specify a condition under which it shows. Last, an alternative command and a group into which the item is sorted can be defined. Groups are visually separated and there is a special group called navigation which is the most prominent.

{ "commands" : [ { "command" : "markdown.showPreview" , "title" : "Open Preview" , "icon" : { "light" : "./media/Preview.svg" , "dark" : "./media/Preview_inverse.svg" } } ], "menus" : { "explorer/context" : [ { "when" : "resourceLangId == markdown" , "command" : "markdown.showPreview" , "group" : "navigation" } ] } }

The snippet above adds an entry into the navigation group of the Explorer context menu when the resource is of the Markdown language. Note that the URI of the current resource is passed to the command when being executed from a menu item.

Add decorations before and after text

New capabilities have been added to the decoration APIs. You can now add 'attachments' before and after a decoration. Attachments can be icons as well as text content that sticks to the decorated text.

An example are the CSS color decorators attached to color values in the text:

Decoration attachments can be defined on decoration types (see the before and after properties on ThemableDecorationInstanceRenderOptions ) and fine-tuned on individual decorations (see the before and after properties on ThemableDecorationRenderOptions ). You can review these properties in the vscode namespace API reference.

API tweaks

The Uri-class now allows you derive a Uri from an existing one: someUri.with({scheme: 'newScheme', path: 'newPath'})

The previewHtml command now allows you to provide a title .

command now allows you to provide a . When previewing html, we expose the style of the current theme via class names of the body element. Those are vscode-light , vscode-dark , and vscode-high-contrast .

, , and . Last, there is a new command vscode.open to open non-textual resources like images.

Debug Extension Authoring: Command Variables

VS Code has supported variable substitution in launch.json configurations for some time. This release introduces a new type of variable that is bound to a VS Code command. When a debug session is started, all command variables that occur in the underlying launch configuration are first collected and then executed. Multiple occurrences of a variable do not result in multiple execution. Before the launch configuration is passed to the debug adapter, all variables are substituted with the command results.

A command is implemented and registered in an extension and its return value is used as the variable's value. The implementation of a command can range from a simple expression with no UI, to some sophisticated functionality based on the UI features available in the extension API.

An example for this functionality can be found in node-debug . Here a variable ${command:PickProcess} is bound to a process picker command. A new 'Attach to Process' launch configuration uses the variable to let the user pick a Node.js process when running the launch configuration.

Introducing a new command variable is simple:

Implement and register the command in your extension (not in the debug adapter).

Add a variables section to your debuggers contribution point.

Add one name/command-binding per variable. For example: "debuggers": { ... "variables": { "RemoteHost": "askUserForRemoteHostCommand" }, ... }

The variable can now be used in any string typed value of a launch configuration as ${command:RemoteHost} .

To make the RemoteHost variable discoverable for the user consider adding it to the configurationAttributes or initialConfigurations sections of the debuggers contribution point.

Debug Extension Authoring: Additions to the Debug Protocol

The debug protocol has been extended in three areas (and VS Code already provides the corresponding UI):

Editing variables : If a debug adapter returns the capability supportsSetVariable , VS Code supports setting the value of unstructured (leaf) variables in the Variables view by calling the setVariable request.

: If a debug adapter returns the capability , VS Code supports setting the value of unstructured (leaf) variables in the Variables view by calling the request. Stepping backward : If a debug adapter returns the capability supportsStepBack , VS Code enables the UI for stepping back and will call the stepBack request.

: If a debug adapter returns the capability , VS Code enables the UI for stepping back and will call the request. Show variable type on hover: If a debug adapter returns the optional type attribute for the variable type, VS Code will show the value of this attribute when hovering over the variable's name.

Creating Errors/Warnings from an Extension (Diagnostics)

With the introduction of the new Problems panel, we started to work on support for project wide builders and linters. As a first step, we eliminated the automatic clearing of problems when an document is closed. Otherwise opening and closing a document would change the problem set generated by a project wide builder. Due to this change, extensions like linters generating diagnostics are responsible for clearing them when a document is closed. All extension providers generating diagnostics need to adopt to this change.

In a linter that uses the vscode-language-server node module, this can be achieved as follows:

documents . onDidClose ( event => { connection . sendDiagnostics ({ uri: event . document . uri , diagnostics: [] }); });

Monaco Editor

The Monaco Editor is now on npm! It is the VS Code source code editor extracted and packaged as a library that can be integrated in any web application to work in any modern browser. We have created a playground showcasing some of the APIs. You can get it via npm install monaco-editor .

All further Monaco Editor specific release notes will be available at its distribution repository.

CSS/LESS/SCSS and JSON language services are now available

Additionally, the CSS/LESS/SASS parser and language intelligence source code has been extracted to a separate node module vscode-css-languageservice which is used by both the Monaco editor as well as VS Code, bringing the same CSS editing experience to the web browser.

Same for JSON, where the language service, including the JSON schema validator, were extracted to vscode-json-languageservice which again is shared with the Monaco editor.

Notable Bug Fixes

The SASS mode language id has been renamed from 'sass' to 'scss'. If you have customized any linter settings for Sass, just rename the configuration keys from 'sass.' to 'scss.'.

6316: Update should reopen all last opened folders

1210: Open file dialog should start in the directory for the current active file

7391: editor becomes unresponsive all the time since last update This fix improves the memory footprint of all colorizers through the use of immutable linked lists for representing colorizer states in-between lines in vscode-textmate.

8173: Noticeable delay opening a Markdown file (source) The implementation of a 10x faster hand-written plist parser for TextMate grammars improves the start-up time of all colorizers. We are looking into extracting this implementation to its own node module.



In addition, the following bugs were fixed with the Integrated Terminal:

#7911: Terminal lines appears to have margin

#7684: Clicking into editor does not properly take focus from Terminal view

#7458: Runaway terminalProcess processes

#6738, #7442, #7444: Several issues related to resizing the terminal

#6743: Mouse wheel scrolling in integrated terminal only works on filled areas

#7357: Invoking the terminal sometimes yields an error "Cannot set property 'innerHTML' of undefined"

#6457: vim overrides the terminal color scheme

These are the closed bugs and these are the closed feature requests for the 1.3 update.

Downloads

Downloads: Windows | OS X | Linux 64-bit .zip .deb .rpm | Linux 32-bit .zip .deb .rpm

Thank You

Last but certainly not least, a big Thank You! to the following folks that helped to make VS Code even better: