Skip to content

Commit 4777302

Browse files
fix: add description for auto saving based on language
1 parent 27e6951 commit 4777302

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/editor/codebasics.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ 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 `Auto Save` features for specific languages or file types, you can do so from your `setting.json` by adding language specific rules. For example, you could disable `Auto Save` for LaTeX files like this:
99+
```json
100+
"[latex]": {
101+
"files.autoSave": "off",
102+
},
103+
```
104+
98105
## Hot Exit
99106

100107
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)