Most common shell commands like command recall (Ctrl+R) work as expected. But some don't. Here's how to keep chosen commands from being intercepted by VS Code.
Please note: a newer version of this story is available on the Seasoned Developer Medium Site.
1. Find the command ID
Under File | Preferences | Keyboard Shortcuts you'll find a list of all keybindings:
Here you can search for the offending keybinding. Once you have it, right click and copy its ID:
2. Update Your settings.json File
This will give you a Command ID you can paste in your settings.json file. The user-level version of this file is located under ~/.config/Code/User.
Within the settings file add the command to skip, e.g. Ctrl-E, quick open:
terminal.integrated.commandsToSkipShell: [
-workbench.action.quickOpen
]
Note the minus symbol in front. Now VS Code will keep your terminal keyboard commands where they belong!


No comments:
Post a Comment