You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't we not try to address this issue by starting to consolidate the two Terminal types in VS Code first?
I propose to have only one "Terminal" in VS Code. This can be either opened from the Explorer's "Open in Terminal" action (which does a 'cd' to the selected folder) or with a global "Open Terminal" action (which opens the terminal at the project root).
Whether this Terminal is a 'System Terminal' or the 'Integrated Terminal' can be controlled via a setting.
Reacted by Daniel Imms, Johannes Rieken, João Moreno, Ignat Ignatov, Chris Dias and Wade Anderson
Andre Weinand (@weinand) I was initially opposed to that idea, but I think my aversion to it was due to multiple terminals not being supported which should come in June 👍
I'm proposing the following, all commands start in workbench.action.terminal. - I haven't checked for conflicts yet.
Command
Description
Keybinding
close
Terminal: Close the current terminal
ctrl+shift+x
closeAll
Terminal: Close all terminals
-
copy
Terminal: Copy text from the terminal
ctrl
focus
Terminal: Focus the terminal panel, toggling it if not visible
-
focusNext
Terminal: Focus the next terminal
ctrl+shift+j
focusPrevious
Terminal: Focus the previous terminal
ctrl+shift+k
new
Terminal: Create a new terminal
ctrl+shift+`
paste
Terminal: Paste into the terminal
ctrl
toggleTerminal
Terminal: Toggle visibility the terminal panel
ctrl+`
Notes:
ctrl+shift+t seems to be commonly used for new, we use it for reopen closed file. ctrl+shift+</kbd> seems like a good fit, just add <kbd>shift</kbd> on top of toggle` to create a new one.
Notice that all terminal management commands use ctrl over cmd on Mac.
Also regarding the external terminal, I think it would be better to just hijack the keybinding from it and leave the command there in case people want it. That is more flexible and feels less messy to me than having a toggle switch in settings.
Activity
Tyriar commentedon Jun 7, 2016
It's standard to have View: prefixed for actions in the view menu.
Tyriar commentedon Jun 7, 2016
I guess doing something like how Debug does as there are a bunch of commands coming for multi terminal handling in June.
joaomoreno commentedon Jun 7, 2016
Yeah I see the
View:argument... but I'd not be very happy in having:Tyriar commentedon Jun 7, 2016
I see you confused yourself there 😄
Maybe you should pose the question to the rest of the team in slack or something, this is how it's done now and I agree it's a bit ugly.
weinand commentedon Jun 7, 2016
Shouldn't we not try to address this issue by starting to consolidate the two Terminal types in VS Code first?
I propose to have only one "Terminal" in VS Code. This can be either opened from the Explorer's "Open in Terminal" action (which does a 'cd' to the selected folder) or with a global "Open Terminal" action (which opens the terminal at the project root).
Whether this Terminal is a 'System Terminal' or the 'Integrated Terminal' can be controlled via a setting.
Tyriar commentedon Jun 7, 2016
Andre Weinand (@weinand) I was initially opposed to that idea, but I think my aversion to it was due to multiple terminals not being supported which should come in June 👍
waderyan commentedon Jun 7, 2016
As far as commands go I am in favor of João Moreno (@joaomoreno)'s later suggestion.
Terminal: Open System Terminal
Terminal: Open Integrated Terminal
Terminal: Focus Integrated Terminal
Personal preference based on how I search for commands and what I would expect.
Also 👍 on Andre Weinand (@weinand)'s consolidation suggestion.
Tyriar commentedon Jun 10, 2016
I'm proposing the following, all commands start in
workbench.action.terminal.- I haven't checked for conflicts yet.closecloseAllcopyfocustoggling it if not visible
focusNextfocusPreviousnewpastetoggleTerminalNotes:
new, we use it for reopen closed file. ctrl+shift+</kbd> seems like a good fit, just add <kbd>shift</kbd> on top oftoggle` to create a new one.Also regarding the external terminal, I think it would be better to just hijack the keybinding from it and leave the command there in case people want it. That is more flexible and feels less messy to me than having a toggle switch in settings.
Tyriar commentedon Jun 11, 2016
Actually the above has some issues: