1. VSCode
Warning
Section needs revision
1.1 VSCode cheats for livecoding
My usual shortcuts:
Alt+D
=> Delete all right // delete line without removing lineCMD+E
=> Extempore EvalALT+CMD+E
=> Extempore Connect current BufferCMD+]
=> Indent LineCMD+[
=> Outdent LineCMD+rightArrow
=> End of lineCMD+leftArrow
=> Start of lineCMD+L
=> Select LineCMD+D
=> Duplicate LineALT+D
=> Delete all right // delete line without removing lineCMD+shift+D
=> delete lineCMD+K 1-2-3-4
=> Wrap selection With letbeat / onbeat / dotimes / printlnOPT+CMD+K
=> Format selectionSHIFT+CMD+K
=> Show snippets
Preferences > Open Keyword Shortcuts
Example key mappings eg In keybindings.json
{
"key": "cmd+e",
"command": "extension.xtmeval",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+e",
"command": "extension.xtmconnect",
"when": "editorTextFocus"
},
{
"key": "cmd+k 1",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "name": "wrap-letbeat" }
},
{
"key": "cmd+k 2",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "name": "wrap-onbeat" }
},
{
"key": "cmd+k 3",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "name": "wrap-dotimes" }
},
{
"key": "cmd+k 4",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "name": "wrap-println" }
}
1.2 VSCode settings
2023-11-26: try removing auto snippets suggestions. Only worked by passing a [extempore]
directive:
"[extempore]": {
"editor.wordBasedSuggestions": false,
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
},
VSCODE opts
1.3 VSCode Snippets
Backup the built-in snippets