Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any shortcuts to switch between editors and the integrated terminal. #12054

Closed
aoyulong opened this issue Sep 15, 2016 · 7 comments
Closed
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@aoyulong
Copy link

  • VSCode Version: 1.5.2
  • OS Version: win 10, 64 bit

My qustion is that is there any shortcuts to switch between editors and the integrated terminal? Here I can only use the CTRL+1, CTRL+2... to switch the open editor tabs.

@bpasero bpasero added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Sep 15, 2016
@Tyriar
Copy link
Member

Tyriar commented Sep 15, 2016

ctrl+` toggles the terminal by default, there is also the workbench.action.terminal.focus command which you can add a keybinding for if you just want to focus it.

@Tyriar Tyriar closed this as completed Sep 15, 2016
@jcrben
Copy link

jcrben commented Apr 18, 2017

To clarify since Markdown got in the way, ctrl+backtick: i.e. ctrl+` toggles the panel.

However, not sure about switching back to the editor yet.

@Tyriar
Copy link
Member

Tyriar commented Apr 18, 2017

If you want ctrl+` to toggle back and forth, add this to your keybindings.json:

{ "key": "ctrl+`",          "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" },
{ "key": "ctrl+`",          "command": "workbench.action.terminal.focus", "when": "!terminalFocus" },

@ModernWebService
Copy link

Updated question to add to this thread. Is there a way to click between terminals rather than moving the mouse to the selection dropdown. Similar to how iterm allows you to hold cmd+ ( 1, 2, 3, 4, etc) Obviously using cmd and number on vscode doesn't work the terminal, it added splits and filters between left, right and middle.

@Tyriar
Copy link
Member

Tyriar commented Aug 16, 2017

@ModernWebService you can add custom keybindings for these:

screen shot 2017-08-16 at 9 41 32 am

@jsta
Copy link

jsta commented Oct 23, 2017

These entries will create RStudio-style Ctrl 1/ Ctrl 2 switching.

{ "key": "ctrl+1",          "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" },
{ "key": "ctrl+2", "command": "workbench.action.terminal.focus", "when": "!terminalFocus" },

@eric-burel
Copy link

eric-burel commented Nov 9, 2017

For our fellow azerty user, ctrl+7 will be usable instead of ctrl+backtick or ctrl+è.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

7 participants