How to set hotkey to move cursor out of quotes/parenthesis?
visual-studio-code
Solution
Check out this extension which does what you want - https://marketplace.visualstudio.com/items?itemName=albert.TabOut
And you can find the implementation here - https://github.com/albertromkes/tabout
Problem
In Sublime I could easily set a more complex hotkey that lets me exit quotes and parenthesis by pressing Enter. It is here below: ``` // Move out of single and double quotes with `Enter` { "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context": [ { "key": "following_text", "operator": "regex_match", "operand": "(?:\"|').*", "match_all": true }, { "key": "preceding_text", "operator": "regex_contains", "operand": "(?:\"|')", "match_all": true } ] }, ``` In VS Code, is there any way to achieve this? This in `keybindings.json` moves the cursor, but it is active when I don't want too. Thanks. ``` { "key": "enter", "command": "cursorRight", "when": "editorTextFocus" } ```