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!