May 2019 (version 1.35)
Join VS Code at Microsoft Ignite or catch the sessions online. A year of VS Code, wrapped. Explore the highlights. May 2019 (version 1.35) Update 1.35.1 : The update addresses these issues . Downloads for 1.35.1 Windows x64 macOS Intel Linux 64-bit .deb .rpm .tar.gz Snap Linux 32-bit .deb .rpm .tar.gz Welcome to the May 2019 release of Visual Studio Code. There are a number of updates in this version that we hope you will like, some of the key highlights include: Updated Visual Studio Code icon - The product logo got a refresh.
We hope you like it. Go to Definition improvements - Faster navigation through multiple definitions. Breadcrumb navigation displayed by default - Quickly go to files and symbols via breadcrumbs. Smart selection for JavaScript/TypeScript - Expand text selection based on language semantics. Extract to type alias TypeScript refactoring - Extract part type into its own type alias. Integrated terminal supports true color - Correctly renders true color (24-bit) escape sequences.
Better merge conflict display - See merge conflict changes within surrounding source code. Collapse All command for lists and explorers - One of many small but handy improvements. Remote Development (Preview) available in Stable - You can now use the Remote Development extensions in Stable. If you'd like to read these release notes online, go to Updates on code.visualstudio.com . Insiders: Want to see new features as soon as possible?
You can download the nightly Insiders build and try the latest updates as soon as they are available. And for the latest Visual Studio Code news, updates, and content, follow us on Twitter @code ! Updated Visual Studio Code icon Over the past two months, we've been working on updating the VS Code product logo. We've taken feedback from the community (thank you to everyone who responded) and we are happy to release the new logos for Stable and Insiders.
We are also using same logo on all platforms. Stable Insiders Note : Depending on your platform, you may still see the earlier logo due to the operating system caching the application icon. If you do encounter caching issues, follow these steps to clear your icon cache. Editor Go to Definition improvements We have polished the Go to Definition action and its friends, Go to Declaration , Go to Type Definition , and Go to Implementation .
Earlier, we added the editor.gotoLocation.multiple: goto option to disable showing a Peek view when a symbol has multiple definitions. However, it would only show the first definition and ignore the rest. This is now much better, as multiple results are shown in the Status bar and pressing F12 jumps to each definition. Go to Definition now honors the workbench.editor.revealIfOpen setting. This means that an editor that is already open in another group can be reused (or not) when going to a symbol.
Note that the old, hard-coded behavior was to reuse the current editor and the default for revealIfOpen is not to reuse. The Peek view now supports search and filter, like the results tree, to allow you to quickly narrow down on a result. Last but not least, you can now cancel long running requests for definitions by pressing Escape . Breadcrumbs displayed Breadcrumbs for quick file and symbol navigation are now on by default.
This can be toggled in the View menu View > Show Breadcrumbs command. Languages TypeScript 3.5 VS Code now ships with TypeScript 3.5.1 . This update brings TypeScript language improvements, along with tooling enhancements for both JavaScript and TypeScript. It also fixes a number of important bugs, including fixes for performance issues that some users were seeing when working with styled-components. Smart selection for JavaScript and TypeScript JavaScript and TypeScript now support smart selection .
This feature uses semantic knowledge to intelligently expand selections for expressions, types, statements, classes, and imports: Extract to type alias refactoring for TypeScript Use the new Extract to type alias refactoring for TypeScript to quickly extract part type into its own type alias: The Extract to type alias refactoring has a kind of refactor.extract.type . You can configure a single keybinding that extracts either constants or type aliases using: { "key" : "shift+ctrl+e" , "command" : "editor.action.codeAction" , "args" : { "kind" : "refactor.extract" , "preferred" : true } } See the Code Action documentation for more information on configuring keybindings for refactorings.
JavaScript and TypeScript suggestion sorting We've tuned our suggestion sorting for JavaScript and TypeScript to more heavily prioritize suggestions for local variables over suggestions for globals or auto-imports: As shown in the image below, if you create a function called setTimOut , VS Code will now suggest it first instead of assuming you mean setTimeout . Integrated Terminal True color support The terminal now supports programs that use true color (24-bit) escape sequences, rendering the correct color instead of the previous approximation of it.
Before: After: Improved surfacing of shell selector on Windows For some time, there has been a command to select the default shell on Windows. This release makes the command more discoverable as a shortcut available in the terminal selector dropdown. Source control Compare merge conflicts with complete context A new setting merge-conflict.diffViewPosition allows you to open the diff view in a new editor group when you compare merge conflicts.
In addition, the new view shows the complete diff view of the changed file, which provides better context for the merge conflicts. Contributions to extensions Remote Development (Preview) The Remote Development extensions are now available for VS Code Stable and allow you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment. The extensions run in the context of the remote workspace while you work with VS Code just as you would in a local workspace.
You can learn about new extension features and bug fixes in the Remote Development release notes . Extension authoring Command enablement Contributed commands can now control their enabled state using a new enablement property. Its value is a when clause, similar to keybindings and menu contributions. The sample below shows how to add a Hello Enablement command to the editor's context menu and have its enabled state depend on whether text is selected in an editor.
"commands" : [{ "command" : "extension.sayHello" , "title" : "Hello Enablement" , "enablement" : "editorHasSelection" }], "menus" : { "editor/context" : [{ "command" : "extension.sayHello" , }] } Disabled commands are shown as grayed-out in menus: Note that certain menu implementations, like the Command Palette, don't show commands that are disabled. There is also some semantic overlap between enablement of commands and the when clause of menu items.
The enablement clause defines the enabled state for all representations of a command while the when clause defines when a command should be included in a menu. For instance, an explorer context menu item might only make sense for certain file types, such as TypeScript files, while enabling that command might depend on another condition, for example "TypeScript server running". You can learn more about commands and menus in the Command Extension Guide .
Updated Octicons We have added new icons to the Octicon library: $(error) $(info) $(info-outline) $(smiley) $(smiley-outline) $(warning) We have also updated existing icons to be a consistent size: $(beaker) $(bell) $(info-outline) $(tools) Note: We also changed the default for $(info) $(smiley) to be a solid version and the previous Octicons were renamed to $(info-outline) $(smiley-outline) . New theme color for active tab of an inactive editor group A new color tab.unfocusedActiveBackground allows you to control the background color of the active tab in an editor group that does not have focus.
This co
The rest of this page is on the live site.