Tempfile - Visual Studio Marketplace
This extension immediately creates a temporary file and opens it in a new tab.
Default shortcut key: Ctrl+Alt+T
or ⌘+Alt+T
Command | Default shortcut key |
---|---|
New tempfile | Ctrl+Alt+T or ⌘+Alt+T |
New tempfile with extension | Ctrl+Alt+Shift+T or ⌘+Alt+Shift+T |
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 |
Parameter | Value |
---|---|
{{tempdir}} | os.tmpdir() |
{{wsdir}} | Workspace root |
{{YYYY}} | Year |
{{MM}} | Month |
{{DD}} | Day |
{{HH}} | Hour |
{{mm}} | Minute |
{{ss}} | Second |
{{SSS}} | Millisecond |