2023 - It's actually possible to have arbitrary keyboard shortcuts that type out stuff like binding.pry
on vanilla Mac. The setup is tricky, but no more than 10 mins.
- Set up a Quick Action via Automator.
- Tie the action to a shortcut (also in that SO thread)
- Allow VSC (or chrome, terminal, whatever) to send keystrokes by adding it to a11y as per the last line of this SO answer. This needs to only be done once, for the first such keystroke sender.