Home  >  Article  >  Development Tools  >  There is no change in local files after vscode modifies the code

There is no change in local files after vscode modifies the code

王林
王林Original
2019-12-16 13:11:448014browse

There is no change in local files after vscode modifies the code

The VSCode code does not respond when running after modification. When I open a local file, the code does not change.

Two solutions:

First: modify the VSCode default configuration file, click the settings icon in the lower left corner -> Settings, and the settings related things will come out, search for files.autoSave

First method: Change "files.autoSave":"off" to "files.autoSave":"onFocusChange", which means that when the editor loses focus, the file content will be automatically updated to the disk.

Second: Modify files.autoSave to afterDelay, and set the time of files.autoSaveDelay.

{
         "workbench.colorTheme": "Quiet Light",
         "files.autoSave": "afterDelay",
         "files.autoSaveDelay": 1
       }

Finally, save the settings and restart VSCode. Any subsequent changes will be automatically updated.

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of There is no change in local files after vscode modifies the code. 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