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

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

王林
Release: 2019-12-16 13:11:44
Original
8162 people have browsed it

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
       }
Copy after login

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!

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