Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TempfileNew to Visual Studio Code? Get it now.
Tempfile

Tempfile

wtetsu

|
1,129 installs
| (2) | Free
Quickly create temporary files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tempfile logo

VS Code Marketplace Test Status Downloads

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

tempfile demo

⌨️ 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

  • Draw, edit, new icon
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft