June 2024 (version 1.91)
Join VS Code at Microsoft Ignite or catch the sessions online. A year of VS Code, wrapped. Explore the highlights. June 2024 (version 1.91) Update 1.91.1 : The update addresses these issues . Downloads for 1.91.1 Windows x64 Arm64 macOS Universal Intel Apple silicon Linux .deb .rpm .tar.gz Arm instructions Snap Welcome to the June 2024 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highlights include: Preview: Incoming/Outgoing changes graph - Visualize incoming and outgoing changes in the Source Control view.
Python environments - Enhanced environment discovery with python-environment-tools. Smart Send in native REPL - Smoothly run code chunks in the native REPL. GitHub Copilot extensibility - Chat and Language Model APIs available in VS Code Stable. Preview: Profiles Editor - Manage your profiles in a single place. Custom tab labels - More variable options and support for multiple extensions. TypeScript 5.5 - Syntax checking for regular expressions and other language features.
JavaScript Debugger - Inspect shadowed variables while debugging JavaScript. If you'd like to read these release notes online, go to Updates on code.visualstudio.com . Insiders: Want to try new features as soon as possible? You can download the nightly Insiders build and try the latest updates as soon as they are available. Accessibility Accessible View for editor hover To improve accessibility when coding, the Accessible View and accessibility help menu can now present the content of the editor hover information.
Depending on the focused part of the hover, they show information about the focused part or the entire hover content. Link underlines To make links easier to distinguish from regular text in the workbench, you can enable the setting accessibility.underlineLinks to underline links. Workbench Search We added a new setting search.ripgrep.maxThreads that enables you to limit the number of threads that the ripgrep search engine uses.
This setting applies regardless whether search is used by the core product or via the extension API. Set search.ripgrep.maxThreads to a nonzero value to configure the number of threads. Be cautious because fixing this setting to a specific value might slow down ripgrep. Adjust allowed encodings for guessing With the new setting files.candidateGuessEncodings , you can configure a set of encodings that should be considered when files.autoGuessEncoding is enabled.
The order of configuration determines the priority. This functionality enables you to limit the possible encodings that can be detected to a smaller set and to prioritize one encoding over another. Profiles Editor preview In this milestone, we introduced a new Profiles Editor that enables you to manage profiles from a single place. This experience includes creating new profiles, editing and deleting existing profiles, and importing and exporting profiles to share with others.
While creating a new profile, you can preview the profile and customize as needed before saving it. The Profiles Editor also enables you to open new windows with a specific profile, or set a profile as the default profile for new windows. The Profiles Editor is available as an experimental feature behind the workbench.experimental.enableNewProfilesUI setting. Once enabled, you can access the Profiles Editor from the Settings gear icon in the bottom left corner of the window.
Give it a try and give us feedback on how we can improve this experience further. New Window with Profile menu item In addition to the Profiles Editor, we added actions to the File menu to open a new window with a specific profile. Use the File > New Window with Profile menu to open a new window with a specific profile. Extension install options We added more options to give you more flexibility when installing extensions: Install an extension without syncing it.
Install a specific version of an extension. Previously, you first had to install the latest version of the extension before you could select a specific version. These actions are available in the context menu of the extension in the Extensions view: Access file extensions in custom labels When you define custom labels , you have now more flexibility to access individual file extensions by using the ${extname(N)} syntax.
Additionally, ${extname(N)} also supports negative indices to capture file extensions in the reverse order. To get the entire file extension, use ${extname} . For example, for the file tests/editor.test.ts : ${filename} => editor ${extname} => test.ts ${extname(0)} => ts ${extname(1)} => test ${extname(-1)} => test ${extname(-2)} => ts Merge custom label patterns from multiple extensions When two extensions contribute a default configuration for the setting workbench.editor.customLabels.patterns in their configurationDefaults , the contributed patterns are merged together.
"workbench.editor.customLabels.patterns" : { "**/app/**/page.tsx": "${dirname} - Page", "**/app/**/layout.tsx": "${dirname} - Layout" } "workbench.editor.customLabels.patterns" : { "**/components/**/index.tsx": "${dirname} - Component" } Default Contribution by Extension 1 Default Contribution by Extension 2 "workbench.editor.customLabels.patterns" : { "**/app/**/page.tsx": "${dirname} - Page", "**/app/**/layout.tsx": "${dirname} - Layout", "**/components/**/index.tsx": "${dirname} - Component" } Resulting Custom Label Patterns Unset a theme color If a theme sets a color or border that you don't like, you can now use default to set it back to the original value: "workbench.colorCustomizations" : { "diffEditor.removedTextBorder" : "default" } Change folding placeholder color The folding placeholder (ellipsis) can now be themed with the color editor.foldPlaceholderForeground .
Editor Code Actions on Save With the editor.codeActionsOnSave setting, you can configure a set of Code Actions that are automatically applied when you save a file, for example to organize imports. We improved the IntelliSense for configuring this setting by providing a list of available Code Actions based on your workspace files and the active extensions. Note : be aware that although true and false are still valid configurations at the moment, they will be deprecated in favor of explicit , always , and never .
See Code Actions on Save Docs for examples. Quickly turn off read-only file status If you have configured a file as read-only through the files.readonlyInclude setting, you can now quickly toggle off the read-only status of the file from the read-only editor message. Source Control Incoming/Outgoing changes graph preview We have been exploring using an alternative visualization of the incoming and outgoing changes. This milestone includes an experimental feature that uses a graph to visualize the incoming and outgoing changes.
The graph contains the current branch, the current branch's upstream branch, and an optional base branch. The root of the graph is the common ancestor of these branches. You can enable this new visualization by using the scm.experimental.showHistoryGraph setting. Try it out and let us know what you think, as we continue to improve and expand the functionality available in this visualization. Notebooks Find in text selection The Notebook Find control now has "Find in Selection" for textual selections and cell selections.
This behavior is enabled by default, and can be controlled via the button within the control. Based on the context of your selection, toggling this button scopes your find query to one or more selected cells, or lines within a cell. Copy or open text output from the context menu When working with text output in notebooks, you can now use the context menu of a text output to copy the output value or to open the output in a new editor.
This feature makes it easier to review large streaming outputs. Terminal Support for copy and paste escape sequence (OSC 52) The Operating System Command (OSC) 52 escape sequence is now s
The rest of this page is on the live site.