Some thoughts:
Snippets
- Worse in VS Code! It looks like you can only do language-specific code execution within keyboard shortcuts, which while flexible, just isn’t quite the same. RStudio 1, Positron 0!
- https://code.visualstudio.com/docs/editor/userdefinedsnippets
- Fortunately some things kinda still work, e.g. straight regex (see Positron below)
- Note also that although snippet syntax follows TextMate snippet syntax, the page above explicitly calls out that interpolated shell code is not supported. So strictly no ACE in snippets.
Snippet 1
In
r.json:{ "Convert slashes in filepath": { "prefix": "pp", "body": [ "'${CLIPBOARD/[\\\\]/\\//g}'" ], "description": "Takes a Windows-style path from clipboard and converts backslash to forward snippet" } }
Pane composition
- Panes are much more flexible in VS Code
- However - I’m still struggling a little bit to just put random tabs in random panes. Mostly I’m dragging e.g.
Consoledown on top ofSessionor something which nests it in like a different version of the pane? So I have to click onSessionto seeConsole. Seems like there’s not great separation of concerns around window vs content… - Oh wow - apparently that’s not quite right. VS Code actually has a less flexible pane model? You have specific kinds of panes and you’re stuck with those, you can just rearrange what content lives on which pane (Left Sidebar, Right Sidebar, Panel).