August 2019 (version 1.38)
Join VS Code at Microsoft Ignite or catch the sessions online. A year of VS Code, wrapped. Explore the highlights. August 2019 (version 1.38) Update 1.38.1 : The update addresses these issues . Downloads for 1.38.1 Windows x64 macOS Intel Linux .deb .rpm .tar.gz Snap Welcome to the August 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: Preserve case for global search and replace - Keep letter casing across multi-file search/replace.
Settings editor string array validation - Checks min, max, enum values, and glob patterns. Adjust cursor surrounding lines - Keep your cursor centered in the editor. Copy and revert in the diff editor - Easily copy or restore deleted content. Go to Line supports negative line numbers - Quickly jump to the end of a file. MDN Reference link for HTML and CSS - Links to MDN documentation directly from IntelliSense. Add missing await Quick Fix - Find overlooked awaits in asynchronous code.
Debugging data breakpoints - Debugger breaks when tracked values change. VS Code icon repository - Official product icons available for extension authors. Alpine Linux distro support - Both for the WSL and Dev Containers extensions. 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 ! Workbench Preserve case in Search and Replace In the 1.37 release, we added a Preserve Case option to the editor's Find/Replace control. The same option is now available as the AB icon in global search and replace. There is also a new case preservation mode for hyphen-separated words. Updated cancel search icon When running long searches, we've updated the icon used to cancel a search to better represent the action.
Validation for string array settings The settings editor now displays errors for array-of-string items if the current value does not satisfy the specified minItems , maxItems , item.enum , or item.pattern schema. Link protection for outgoing links VS Code now shows a prompt before opening outgoing links. You can open the link directly or trust specific domains to bypass this prompt. With the Configure Trusted Domains button or command, you can enable/disable link protection for specific domains or all outgoing links.
Explorer improvements Top-level resource creation We have improved the process of creating top-level files and folders in the Explorer. There are now three ways to create a file or folder in the root of the File Explorer: Scrolling beyond the last element in order to invoke the context menu on the empty space. Pressing Escape clears both focus and selection in the Explorer thus making the title area actions execute on the Explorer root.
Using a context menu on the scroll bar. Open file and preserve focus It is now possible to open a file in preview from the Explorer while keeping focus in the Explorer. The new command is filesExplorer.openFilePreserveFocus and by default, it can be triggered via the Space key. Explorer file naming There is a new setting, explorer.incrementalNaming , to control duplicate file naming, which can have the values simple or smart . simple - Appends the word "copy" at the end of the duplicated name potentially followed by a number.
This is the current VS Code stable behavior. smart - Adds a number at the end of the duplicated name. If a number is already part of the name, increment that number. Maximize editor toggle command A new command Toggle Editor Group Sizes ( workbench.action.toggleEditorWidths ) will toggle between maximizing the active editor group and evening out the editor group widths. Grid layout for the workbench The layout engine of the workbench has been rewritten to use the same grid widget as the editor area itself.
This work has been in progress for some time and Insiders builds have had this enabled by default for the past couple iterations. The setting is workbench.useExperimentalGridLayout and will now be enabled by default. Toggling the editor area / Maximizing the panel The new engine provides more flexibility for the workbench layout in the future. For now, this manifests itself with the ability to hide the editor area. There is a new command available with the grid layout, Toggle Editor Area that will hide the editor area and allow the panel (for example Output or Debug console) to fill the layout.
The Toggle Maximized Panel command also has the same effect. This means that a maximized panel is now truly maximized without the tiny gap previously left of the editor. Below you can see the maximized Integrated Terminal: The editor will automatically reappear if you try to open a file from anywhere such as the panel or sidebar. Hide individual macOS Touch Bar entries A new setting keyboard.touchbar.ignored can selectively remove VS Code commands from the macOS Touch Bar.
VS Code adds the following commands by default: workbench.action.navigateBack workbench.action.navigateForward workbench.action.debug.start workbench.action.debug.run workbench.action.debug.continue workbench.action.debug.pause workbench.action.debug.stepOver workbench.action.debug.stepInto workbench.action.debug.stepOut workbench.action.debug.restart workbench.action.debug.stop New editor group context keys There are two new when clause contexts for conditionally binding keyboard shortcuts: activeEditorGroupIndex - A number starting from 1 reflecting the position of an editor group in the editor grid.
The group with index 1 will be the first in the top-left corner. activeEditorGroupLast - Will be true for the last editor group in the editor grid. Note: See when clause contexts reference for a full list of when clause contexts. Accessibility improvements We continue to fix accessibility issues in this milestone. Highlights are: Word navigation now follows what NVDA and VoiceOver expect. Words are properly announced when navigating using word navigation in the editor.
The Windows Magnifier Tool can now follow the cursor in the editor. Screencast mode There have been several improvements to the Screencast mode ( Developer: Toggle Screencast Mode ): There's now a limit on the length of the screencast keybinding label. The keybinding label vertical position can be adjusted via the screencastMode.verticalOffset setting. The keybinding label can be configured to render only actual keyboard shortcuts via the screencastMode.onlyKeyboardShortcuts setting.
The keyboard shortcuts render style was improved. Editor Cursor surrounding lines (scrollOff) You can now customize the number of visible lines to display around the cursor when moving the cursor towards the beginning or end of a file by setting editor.cursorSurroundingLines . In the Vim editor, this feature is called scrollOff . Multi-line search in Find The editor Find control now supports multiple line text search and replace.
By pressing Ctrl+Enter , you can insert new lines into the input box. Copy and revert in the inline diff editor There are new actions for copying or reverting deleted content when using the inline diff editor. Hover on deleted content in the inline diff editor and you can now: Copy the whole deleted content Copy a specific line Revert the change Go to Line supports negative line numbers You can now type in negative line numbers to the Go to Line picker to navigate from the end of the file.
For example, typing -1 will reveal the last line of the file. Global search minimap decorations The minimap (code overview) now shows search results for searches both within a file and global search. Integrated Terminal Improved fallback behavior when using variables in terminal.integrated.cwd When using variables in the cwd setting such as: "terminal.integrated.cwd" : "${fileDirname}"
The rest of this page is on the live site.