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