1. Skip to content

1. VSCode

Warning

Section needs revision

1.1 VSCode cheats for livecoding

My usual shortcuts:

  • Alt+D => Delete all right // delete line without removing line
  • CMD+E => Extempore Eval
  • ALT+CMD+E => Extempore Connect current Buffer
  • CMD+] => Indent Line
  • CMD+[ => Outdent Line
  • CMD+rightArrow => End of line
  • CMD+leftArrow => Start of line
  • CMD+L => Select Line
  • CMD+D => Duplicate Line
  • ALT+D => Delete all right // delete line without removing line
  • CMD+shift+D => delete line
  • CMD+K 1-2-3-4 => Wrap selection With letbeat / onbeat / dotimes / println
  • OPT+CMD+K => Format selection
  • SHIFT+CMD+K => Show snippets

Preferences > Open Keyword Shortcuts

alt

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
        }
    },
=> See settings.json

VSCODE opts

"extempore.sharedir": "/Applications/-Other-Apps/2-Music/_synthesys/extempore"

1.3 VSCode Snippets

Backup the built-in snippets

[michele.pasin]@MiniBeast:~/.vscode/extensions/extemporelang.vscode-extempore-0.2.8/snippets>mv extempore.json extempore.json.bk