VScode is a great tool, but what makes me laugh is that it basically takes up almost every keyboard shortcut I can think of and what I can’t think of.
Using MicroPython’s mpremote tool in the terminal of VScode, when I want to use the keyboard shortcut ctrl+E
to enter the paste mode of the REPL, I find that it is occupied by VScode.
-
In order to resolve the conflict, you need to set it in VScode’s File > Preferences > Keyboard Shortcuts, or use the shortcut key
ctrl+shift+P
and enter it in the pop-up search baropen keyboard shortcuts
to access this option. -
Enter
ctrl E
in the search bar to find its related items, and find that the command that occupies the item isGo to File...
. -
Right-click the item that occupies this shortcut key, left-click the
Change When Expression
item, enter!terminalFocus
, and press Enter to confirm. This condition makes this command not valid in the terminal. -
Use the mpremote tool in the terminal of VScode to enter the REPL of the development board, and use the shortcut key
ctrl+E
to enter the paste mode of the REPL normally. -
You can also use the shortcut key
ctrl+shift+P
and enteropen keyboard shortcuts(JSON)
in the pop-up search bar, edit this file, and add the following code:
[
{
"key": "ctrl+e",
"command": "workbench.action.quickOpen",
"when": "!terminalFocus"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
}
]
video demo:
- Banana Pi BPI-Leaf-S3 wiki page
- Aliexpress shop link
- Taobao shop link
- OEM&OEM customized service : [email protected]