Home > Development Tools > VSCode > body text

How to modify the default configuration of vscode

藏色散人
Release: 2019-12-17 10:39:02
Original
10146 people have browsed it

How to modify the default configuration of vscode

How to modify the default configuration of vscode?

vscode configuration

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

Related recommendations: vscode tutorial

File->Preferences->Settings-> Directly search for "editor.formatOnType": false, and "editor.formatOnSave": false Restart, that's it;

How to modify the default configuration of vscode

After updating VsCode today, I found a pitfall. The previously set prohibition of saving and formatting was useless. Finally, I found that the JS-CS-HTML Formatter was not disabled. If the same problem occurs, check JS-CS - Is the HTML Formatter disabled?

2. Set vscode automatic line wrapping:

File->Preferences->Settings->Direct search-> Editor:WordWrap, turn off Just change it 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;

How to modify the default configuration of vscode

If the vscode menu etc. are still displayed in English after restarting, check the installed plug-ins in the store and 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 Delete> )>Find the corresponding language, here is JavaScript as an example, search with JavaScript,

 

How to modify the default configuration of vscode

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

Click on the extension or (Ctrl Shift X), search for Code Runner, click on install, and restart That’s it;

How to modify the default configuration of vscode

More settings will be added later;

The above is the detailed content of How to modify the default configuration of vscode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template