Visual Studio Code 1.65 has been released, and this version has many updates. The following is an excerpt of some new features for introduction.

Workbench

New editor history navigation

Edit Group Aware Navigation

Editor groups are now considered when navigating in editor history. Navigating back and forth in the editor history will activate editors and focus them on those editor groups. When deleting an editor group, all associated history entries are discarded.
In the animation below, the first Go Back places the cursor in the new editor group, and the second Go Back navigates back to the original editor group.

New settings for history navigation

There is a new setting workbench.editor.navigationScope that can scope editor history navigation to active editor groups or even editors. The supported values are:

  • default: Editor navigation applies to all open editor groups and editors.
  • editorGroup: Editor navigation is limited to the open editors of the active editor group.
  • editor: Editor navigation is limited to the active editor.

If the scope is configured as editorGroup or editor, each editor group or editor will have its own navigation stack, which can be navigated individually.

Notebook supports

You can navigate between selected cells in any Notebook, and navigation works across editors.

New layout control options

Introduced an experimental layout control in the title bar (enabled: by setting workbench.experimental.layoutControl.enabled to true), through the layoutControl.type setting, the corresponding UI layout can be selected. This setting has the following three options:

  • menu: Legacy layout, a single button that opens the menu (default).
  • toggles: New option that displays three buttons to toggle the main panel, sidebar and side panel.
  • both: New option, showing three toggle buttons, but also a menu button.

For example, if it is set to both, as shown in the following figure, three toggle buttons plus a drop-down menu button:

image.png

Light High Contrast Theme

Added new Light High Contrast theme (feeling too high contrast to look a bit tired)

image.png

Audio prompt

Added new audio cues, including audio cues for warnings, inline suggestions, and debugger breakpoint hits. The previous audioCues.enabled setting has been deprecated in favor of the audioCues.* settings:

image.png

New audio cue command Help: List Audio Cues to view all available audio effects.

Drag and Drop issues and search results

Question, search or reference results can be dragged and dropped into the editor to open the file and display the result location.

settings editor split view

Separate the table of contents from the settings list with an adjustable split view.

Improved automatic language detection

With the new setting workbench.editor.historyBasedLanguageDetection enabled, the untitled editor will use an improved automatic language detection algorithm that takes into account editor history and the content of the current workspace, the new algorithm provides detection with only a small amount of text input result.

Here's an example of using the new algorithm in JavaScript, TypeScript, Markdown, Python, PHP, and C++ (more languages supported):

Improved language extension proposal

Language extension recommendation now considers other prominent language extensions in the extension marketplace when recommending. For example, if the Apache NetBeans Java extension is installed, VS Code will not recommend the Java extension pack.

Expand the keyboard shortcut for tree hover

Hover can be triggered using the keyboard shortcut Ctrl/Cmd+K, Ctrl/Cmd+I to display in a custom tree view provided by the extension.

editor

fragment surrounds

There is a new command to surround the current selection with a snippet: first select some text, invoke the Surround With Snippet command from the Command Palette ( Ctrl+Shift+P ), then select a snippet from the drop-down list. In the animation below, a selected method is surrounded by a try/catch fragment.

Context Unicode Highlight

In trusted workspaces, only highlight characters that are not visible or may be confused with ASCII characters
Multiple false positives were previously seen in const strings:

image.png

Only confusing characters will now be shown

image.png

Source Control

diff editor management

There is a new command Git: Close All Diff Editors in the Command Palette which can be used to close all open diff editors. There is also a new setting git.closeDiffOnOperation which automatically closes the diff editor when changes are hidden, committed, discarded, staged or unstaged.

Git command output logging

When a Git command is executed, its contents stderr is logged in the Git output window. There is a new setting git.commandsToLog for specifying a list of Git commands whose contents are logged to stdout in the Git output window.

tonality

lazy variable

VS Code's generic debugger can now display a button for users to get variable values on demand. This can be used for debugging extensions that support the new "lazy" variable feature.

In addition, this version also contains a large number of other updates, such as updates to a single language, support for the latest Typescript 4.6, etc. The details can be viewed in the release announcement.

for more


微软技术栈
423 声望997 粉丝

微软技术生态官方平台。予力众生,成就不凡!微软致力于用技术改变世界,助力企业实现数字化转型。