Instantly create temporary files with smart naming and content templates.
Perfect for quick notes, code snippets, debugging logs, or any temporary content. No more cluttering your workspace with untitled-1.txt files!
Default shortcut: Ctrl+Alt+T (Windows/Linux) | ⌘+Alt+T (Mac)
| Command | Shortcut | Description |
|---|---|---|
| New tempfile | Ctrl+Alt+T / ⌘+Alt+T |
Create temp file with default extension |
| New tempfile with extension | Ctrl+Alt+Shift+T / ⌘+Alt+Shift+T |
Choose file extension first |
💡 Tip: You can also access commands via Command Palette (
Ctrl+Shift+P) → "Tempfile"
You can customize the file path and initial content.
| Config | Description | Default |
|---|---|---|
| tempfile.newFilePath | New file path | {{tempdir}}/tempfile/{{YYYY}}{{MM}}{{DD}}_{{HH}}{{mm}}{{ss}}{{SSS}}.md |
| tempfile.initialContent | New file content | # {{YYYY}}-{{MM}}-{{DD}} {{HH}}:{{mm}}:{{ss}}.{{SSS}}\n |
| tempfile.append | If true, append to existing file |
false |
| Parameter | Value |
|---|---|
| {{tempdir}} | The system's temporary directory (os.tmpdir()) |
| {{wsdir}} | Workspace root |
| {{YYYY}} | Year |
| {{MM}} | Month |
| {{DD}} | Day |
| {{HH}} | Hour |
| {{mm}} | Minute |
| {{ss}} | Second |
| {{SSS}} | Millisecond |

