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

Tempfile

wtetsu

|
1,022 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

Test

Tempfile - Visual Studio Marketplace

vscode-tempfile

This extension immediately creates a temporary file and opens it in a new tab.

Default shortcut key: Ctrl+Alt+T or ⌘+Alt+T

tempfile demo

Commands

Command Default shortcut key
New tempfile Ctrl+Alt+T or ⌘+Alt+T
New tempfile with extension Ctrl+Alt+Shift+T or ⌘+Alt+Shift+T

Configuration

You can specify the new 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

Parameters

Parameter Value
{{tempdir}} os.tmpdir()
{{wsdir}} Workspace root
{{YYYY}} Year
{{MM}} Month
{{DD}} Day
{{HH}} Hour
{{mm}} Minute
{{ss}} Second
{{SSS}} Millisecond

Third party data

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