Skip to content

Commit 63ae03d

Browse files
authored
Merge pull request #7826 from cachandlerdev/add-autosave-language-specific-directions
Add an explanation for auto saving based on specific languages/file types
2 parents b9cfc5d + 372bffa commit 63ae03d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/editor/codebasics.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ For more control over `Auto Save`, open User or Workspace [settings](/docs/getst
9595
* `onWindowChange` - to save files when the focus moves out of the VS Code window.
9696
* `setting(files.autoSaveDelay)`: Configures the delay in milliseconds when `setting(files.autoSave)` is configured to `afterDelay`. The default is 1000 ms.
9797

98+
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.
99+
100+
For example, to disable `Auto Save` for LaTeX files:
101+
102+
```json
103+
"[latex]": {
104+
"files.autoSave": "off",
105+
},
106+
```
107+
98108
## Hot Exit
99109

100110
By default, VS Code remembers unsaved changes to files when you exit. Hot exit is triggered when the application is closed via **File** > **Exit** (**Code** > **Quit** on macOS) or when the last window is closed.

0 commit comments

Comments
 (0)