How does vscode switch the focus in the file management and code writing interface? How to switch the focus to the terminal?

In VS Code, you can use some keyboard shortcuts to switch focus between file management and code editing.

If you are using Windows or Linux:

  • Switch focus to the file manager:Ctrl + Shift + E
  • Switch focus to the code editor: F12(open definition on symbol under cursor or selected text) or Ctrl + 1(switch focus to first editor group)

If you are using MacOS:

  • Switch focus to the file manager:Cmd + Shift + E
  • Switch focus to the code editor: F12(open definition on symbol under cursor or selected text) or Cmd + 1(switch focus to first editor group)

In VS Code, you can use the following keyboard shortcuts to switch focus to the terminal:

If you are using Windows or Linux:

  • `Ctrl + `` (the backtick key, usually to the left of the number key 1)

If you are using MacOS:

  • `Cmd + ``

These shortcuts open a new terminal (if there is no already open terminal), or switch focus to an already open terminal.

Guess you like

Origin blog.csdn.net/m0_57236802/article/details/130929661