Can't enter REPL paste mode in VScode? Just fix the keyboard shortcut conflict. #9246
Wind-stormger
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:Beta Was this translation helpful? Give feedback.
All reactions