Using VS Code as a scratch pad
Many developers press ⌘N in VS Code and use the untitled tab as a scratch pad. It is fast, and the editor is already open. Here is what keeps that text safe on a Mac, and what can lose it.
Why people use it
- VS Code is already open. ⌘ N gives you a new untitled tab, with no name to type.
- You can give the tab a language (⌘ K M), so a shell or SQL scrap gets colors.
- When you quit VS Code, its hot exit keeps unsaved tabs, untitled ones too, and brings them back the next time. The setting is
files.hotExit, andonExitis the default. - While you type, VS Code also keeps a backup of unsaved text.
Where the untitled text is
On a Mac, VS Code keeps its backups of unsaved text in this folder:
~/Library/Application Support/Code/Backups
It is VS Code's own working folder, not a place to keep notes. If you lost a tab, see how to get back unsaved text.
Where it lets you down on a Mac
- Closing the window is not quitting. On a Mac, hot exit runs when you quit VS Code with ⌘ Q. Close the last window instead, and VS Code asks you to save each untitled tab.
- "Don't Save" means gone. Click it out of habit, and VS Code deletes the text and its backup.
- Local History does not help. It keeps a copy each time you save a file. An untitled tab was never saved, so it has no history.
- No dates. The tab takes its name from its first line, not from when you wrote it.
- Not from any app. To write, you switch to VS Code, and then back.
What about scratch files?
VS Code has no scratch files feature. Its team suggests an untitled file instead, and in April 2026 it closed a request for a scratchpad panel as not planned.
A scratch pad that saves every sheet
Scribble Pad keeps the good part, a tab with no name, and drops the risk:
- Every sheet is saved as a file while you type, named by the time you started it. There is no "Don't Save".
- ⌘ W closes a tab, and the sheet stays saved. ⇧ ⌘ T or ⌘ P brings it back.
- Hyper S opens a quick note on top of VS Code, or any app. esc puts you back in your code.
- Code blocks marked
```bashor```sqlget colors. - Every sheet is encrypted on disk, and stays on your Mac.
One thing to know: the line keys are Sublime Text's, not VS Code's. Here are all the keyboard shortcuts.
Keep VS Code for code. Use the pad for the thoughts around it.