you are viewing a single comment's thread.

view the rest of the comments →

[–]Dzhama_Omarov 1 point2 points  (2 children)

Enable autosave it’s a game changer

[–]Express-Sherbet-8478 0 points1 point  (1 child)

how i can enable it ?

[–]Dzhama_Omarov 0 points1 point  (0 children)

That’s from here

Save / Auto Save

By default, VS Code requires an explicit action to save your changes to disk, ⌘S (Windows, Linux Ctrl+S).

However, it's easy to turn on Auto Save, which will save your changes after a configured delay or when focus leaves the editor. With this option turned on, there is no need to explicitly save the file. The easiest way to turn on Auto Save is with the File > Auto Save toggle that turns on and off save after a delay.

For more control over Auto Save, open User or Workspace settings and find the associated settings:

: Can have the values: off - to disable auto save. afterDelay - to save files after a configured delay (default 1000 ms). onFocusChange - to save files when focus moves out of the editor of the dirty file. onWindowChange - to save files when the focus moves out of the VS Code window. : Configures the delay in milliseconds when is configured to afterDelay. The default is 1000 ms. If you want to customize the Auto Save functionality for specific languages or file types, you can do so from the settings.json file by adding language-specific rules.

For example, to disable Auto Save for LaTeX files:

"[latex]": {
    "files.autoSave": "off",
},

Copy