⚡ Tempfile for VS Code
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!
🚀 Quick Start
Default shortcut: Ctrl+Alt+T (Windows/Linux) | ⌘+Alt+T (Mac)
⌨️ Commands
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"
⚙️ Configuration
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 |
🔧 Template Parameters
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 |
Third-party attribution
| |