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

How does vscode modify the default configuration

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

Share

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

This article mainly introduces how to modify the default configuration of vscode, which is very detailed and has a certain reference value. Friends who are interested must finish reading it!

How does vscode modify the default configuration?

Vscode configuration

1. Remove ctrl+s and save automatic format change file:

Related recommendation: vscode tutorial

File-> preferences-> Settings-> search directly for "editor.formatOnType": false, and "editor.formatOnSave": false restart, and that's fine.

After updating VsCode today, I found that there is a pit. The previously set prohibition on saving and formatting is useless. Finally, I found that JS-CS-HTML Formatter is not disabled. If there is the same problem, check whether JS-CS-HTML Formatter is disabled.

2. Set vscode line wrapping:

File-> preferences-> Settings-> Direct search-> Editor:WordWrap. Modify off to on.

3. Vscode is an open source cross-platform editor. By default, the language used by vscode is English (us). How to change its display language to Chinese:

1) Open the vscode tool

2) use the shortcut key combination [Ctrl+Shift+p], enter "configure display language" in the search box, and click OK.

3) modify the attribute "locale" under the locale.json file to "zh-CN"

4) restart the vscode tool

If the vscode menu is still displayed in English after restart, check the installed plug-ins in the store, reinstall the Chinese plug-ins (as shown below), and then restart the tool.

4. Open vscode > File > preferences > user code snippet (shortcut key: ctrl+shift+p deletion >) > find the corresponding language. Here, take JavaScript as an example, search with JavaScript

5. How to right-click the VsCode to run the file

Click expand or (Ctrl+Shift+X), search for Code Runner, click install, and restart

The above is all the contents of the article "how to modify the default configuration of vscode". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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: 261

*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