By default, notes are appended to the same document regardless of where you are in VSCode, and are optionally prepended if you'd like to keep a reverse-chronological history of your scratchpad. Timestamps are added for visual clarity. If you delete the scratchpad file, upon next run it will generate a new file for you to use.
Usage
Install the plugin (reload VS Code)
CMD+SHIFT+P, search for Open Scratchpad
Add key bindings (Optional) .
Open key bindings settings file:
Open Command Palette (Ctrl+P)
Search for 'Open keyboard shortcuts'
Add and save you key bindings. For example:
// Open "keybindings.json" to overwrite the defaults. Can also be modified in VS Code's Keyboard Preferences.
[
{
"key": "ctrl+shift+.",
"command": "extension.openScratchpad",
"when": "editorTextFocus"
}
]
Settings can be modified to specify appending to scratchpad upon invocation or prepending (defaults to appending):
// Setting for prepending to scratchpad.txt
"scratchpad.prepend": true // default is false