vscode-tempfile
This extension immediately creates a temporary file and opens it in a new tab.
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 |
Parameters
Parameter | Value |
---|---|
{{tempdir}} | os.tmpdir() |
{{wsdir}} | Workspace root |
{{YYYY}} | Year |
{{MM}} | Month |
{{DD}} | Day |
{{HH}} | Hour |
{{mm}} | Minute |
{{ss}} | Second |
{{SSS}} | Millisecond |