Preferences->Settings"; then directly search for "editor.formatOnType" and "editor.formatOnSave"; and finally restart."/> Preferences->Settings"; then directly search for "editor.formatOnType" and "editor.formatOnSave"; and finally restart.">

Home  >  Article  >  Development Tools  >  How to modify the default configuration of vscode

How to modify the default configuration of vscode

藏色散人
藏色散人Original
2019-12-17 10:39:0210132browse

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!

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