Support for ctrl+1 - ctrl+9 for switching tabs #8475

Closed
opened 2026-01-31 01:30:28 +00:00 by claunia · 3 comments
Owner

Originally created by @yaira2 on GitHub (May 22, 2020).

I apologize if I missed something in one of the docs but I couldn't find if there was a way to use keyboard accelerators to switch tabs in Terminal and was wondering if that was an option.

Originally created by @yaira2 on GitHub (May 22, 2020). I apologize if I missed something in one of the docs but I couldn't find if there was a way to use keyboard accelerators to switch tabs in Terminal and was wondering if that was an option.
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 01:30:28 +00:00
Author
Owner

@XMLSDK commented on GitHub (May 22, 2020):

Just add these to "keybindings" array in settings.json:

    { "command": { "action": "switchToTab", "index": 0}, "keys": ["ctrl+1"] },
    { "command": { "action": "switchToTab", "index": 1}, "keys": ["ctrl+2"] },
    { "command": { "action": "switchToTab", "index": 2}, "keys": ["ctrl+3"] },
    { "command": { "action": "switchToTab", "index": 3}, "keys": ["ctrl+4"] },
    { "command": { "action": "switchToTab", "index": 4}, "keys": ["ctrl+5"] },
    { "command": { "action": "switchToTab", "index": 5}, "keys": ["ctrl+6"] },
    { "command": { "action": "switchToTab", "index": 6}, "keys": ["ctrl+7"] },
    { "command": { "action": "switchToTab", "index": 7}, "keys": ["ctrl+8"] },
    { "command": { "action": "switchToTab", "index": 8}, "keys": ["ctrl+9"] },
    { "command": { "action": "switchToTab", "index": 9}, "keys": ["ctrl+0"] }
@XMLSDK commented on GitHub (May 22, 2020): Just add these to "keybindings" array in settings.json: ``` { "command": { "action": "switchToTab", "index": 0}, "keys": ["ctrl+1"] }, { "command": { "action": "switchToTab", "index": 1}, "keys": ["ctrl+2"] }, { "command": { "action": "switchToTab", "index": 2}, "keys": ["ctrl+3"] }, { "command": { "action": "switchToTab", "index": 3}, "keys": ["ctrl+4"] }, { "command": { "action": "switchToTab", "index": 4}, "keys": ["ctrl+5"] }, { "command": { "action": "switchToTab", "index": 5}, "keys": ["ctrl+6"] }, { "command": { "action": "switchToTab", "index": 6}, "keys": ["ctrl+7"] }, { "command": { "action": "switchToTab", "index": 7}, "keys": ["ctrl+8"] }, { "command": { "action": "switchToTab", "index": 8}, "keys": ["ctrl+9"] }, { "command": { "action": "switchToTab", "index": 9}, "keys": ["ctrl+0"] } ```
Author
Owner

@DHowett commented on GitHub (May 22, 2020):

That’ll do it! Thanks for sharing @XMLSDK

@DHowett commented on GitHub (May 22, 2020): That’ll do it! Thanks for sharing @XMLSDK
Author
Owner

@yaira2 commented on GitHub (May 22, 2020):

@DHowett @XMLSDK Thank you so much! It was also pointed out to me that there is a docs page for this which will hopefully be helpful for anyone else who runs into this issue https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings#tab-management-commands.

@yaira2 commented on GitHub (May 22, 2020): @DHowett @XMLSDK Thank you so much! It was also pointed out to me that there is a docs page for this which will hopefully be helpful for anyone else who runs into this issue https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings#tab-management-commands.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8475