How can I make ctrl+right/left arrow jump words in Visual Studio Code
Solution 1:
I ended up finding the solution via Microsoft vscode github issues: https://github.com/Microsoft/vscode/issues/64972
Add these keybindings in ~/Library/Application Support/Code/User/keybindings.json
{
"key": "ctrl+left",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001bb" },
"when":"terminalFocus"
},
{
"key": "ctrl+right",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001bf" },
"when":"terminalFocus"
}
Tested in GNU bash version 4.4.23, (installed via homebrew brew install bash
)
Solution 2:
A totally primitive solution would be to reassign the key's function.
Change the Control to Option as shown.
But that would require you to change it back for other uses.