Handy tool when you write down some text using vscode offen, and do not want to save the files one by one.
- Create a tmp file with a shortcut.
This extension contributes the following settings:
vsc.tmp.deleteOnExit
: removes the created files when vscode exits, default falsevsc.tmp.tmpDir
: where the temporary files will be created, default the system temp dirvsc.tmp.file.defaultExtension
: Default file extension type for the prompt
All commands are available by opening the Command Palette (Command+Shift+P
on macOS and Ctrl+Shift+P
on Windows/Linux) and typing in one of the following Command Name:
Command Name | Command ID | Description |
---|---|---|
Vsc-tmp: Create |
nvsc.tmp.file.create |
create a temporary file |
Vsc-tmp: Open Created |
vsc.tmp.file.openCreated |
open a temporary file created in the current session |
By default, the extension does not provide any shortcut. But you can assign each command to one. (see Key Bindings for Visual Studio Code for more information).