Skip to content

wtetsu/vscode-tempfile

Repository files navigation

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