Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Considerations for vscode configuration and key binding

2025-04-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you vscode configuration and key binding notes, I hope you will learn something after reading this article, let's discuss it together!

When the genuine version took off, jetbrains-agent announced that it would no longer be updated, and thousands of dogs wailed. Many years of old vscode players are back again.

Because of the default configuration of vscode, it is not very comfortable to use now, so work hard. After a trial of finishing inquiry, summarize the following configurations that can make your vscode take off.

Version: 1.48.2

SnippetsPreventQuickSuggestions

Question: after typing log to quickly generate code by tab, the prompt is gone?

Resolve:

"editor.suggest.snippetsPreventQuickSuggestions": false,wordSeparators

Question: for calendar-header, a className double-click with a-delimiter in the middle can never be selected, only part of it can be selected.

Solution: remove-character

"editor.wordSeparators": "`~! @ # $% ^ & * () = + [{]}\\ |;:'\",. /? "quickSuggestionsDelay

Problem: this is not a problem, but I remember there was no such configuration before, which caused my vscode prompt to be delayed all the time (default 500) and always felt that Vscode card..

Resolve:

"editor.quickSuggestionsDelay": 0cursorBlinking

Problem: the default function of brackets allows you to animate your cursor movement.

Resolve:

"editor.cursorSmoothCaretAnimation": trueacceptSuggestionOnCommitCharacter

Question:

In this case, enter the left parenthesis and it will look like this.

This is definitely not what I want.

Resolve:

"editor.acceptSuggestionOnCommitCharacter": falseformatOnPaste

Problem: after pasting the code, you have to reformat the code. If you don't want to change the entire code, you have to select the pasted part of the code and format it manually.

Resolution: enable automatic formatting when pasting

Editor.formatOnPaste: truerenderCharacters

Problem: rendering only the approximate color blocks of the mini-map instead of specific characters feels like it can improve performance. The default is to render specific characters. ~

Resolve:

Editor.minimap.renderCharacters: two configurations of false

I remember the first time I used vscode, when there was no UI setting editor.

Workbench.settings.editor: 'json',workbench.settings.useSplitJSON: true automatically ends with a comma

A plug-in: macros

One sentence configuration:

"macros": {"comma": [/ / with a comma at the end and a new line "cursorLineEnd", {"command": "type", "args": {"text": ","}} "editor.action.insertLineAfter"]}

A shortcut key:

Automatically insert closing parentheses, closing quotation marks

Usually I don't seem to press the left parenthesis and don't need the closing parenthesis.

"editor.autoClosingBrackets": "always", "editor.autoClosingQuotes": "always", screenshot mode

The ability to display buttons and highlight the mouse when similar to up color codes

Search for Screencast and bind the shortcut key:

After reading this article, I believe you have some understanding of "precautions for vscode configuration and key binding". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report