咨询VSCode 1.23.0中多终端快速切换的快捷键方法
Hey there! I totally get how annoying it is to fumble with the dropdown menu every time you need to switch terminals—total workflow killer when you’re in the zone. Lucky for you, VS Code has built-in shortcuts to make this way quicker, plus options to tweak things if the defaults don’t fit your style. Here’s what you need:
Default Out-of-the-Box Shortcuts
These work natively in VS Code 1.23.0:
- Cycle through terminals (forward): Press
Ctrl+Shift+(that’s the backtick/tilde key, the same one you use to open the terminal panel in the first place). Keep pressing it to loop through all your open terminals. - Switch to next terminal:
- Windows/Linux:
Ctrl+PageDown - Mac:
Cmd+PageDown
- Windows/Linux:
- Switch to previous terminal:
- Windows/Linux:
Ctrl+PageUp - Mac:
Cmd+PageUp
- Windows/Linux:
Customize Shortcuts to Your Liking
If the defaults don’t click with your muscle memory, you can set your own:
- Open the Keyboard Shortcuts panel with
Ctrl+K Ctrl+S(Windows/Linux) orCmd+K Cmd+S(Mac). - Search for "Terminal: Focus Next Terminal" and "Terminal: Focus Previous Terminal".
- Click the pencil icon next to the command you want to adjust, then press your preferred key combination to save the new shortcut.
Bonus Tip for Clarity
Right-click on any terminal tab and select Rename to give it a descriptive label (like "Dev Server" or "Build Watcher"). Even with shortcuts, this makes it way easier to keep track of which terminal does what at a glance!
内容的提问来源于stack exchange,提问作者Knows Not Much

