Search code examples
keyboard-shortcutsintellij-idea

IntelliJ IDEA shortcut for switching to tab by number


In FireFox, I'm constantly using the Ctrl + 1-9 shortcut to switch tabs. Basically Ctrl + 1 will take me to the first tab, Ctrl + 2 will take me to the second one and so on.

Is there an equivalent for this shortcut in IntelliJ IDEA?


Solution

  • UPDATE:

    You can now assign keyboard shortcuts to navigate to the specific tab number:

    Select Tab


    Original obsolete response:

    There is no such feature in IDEA, however you can use Alt + Arrows and Ctrl + E (Recent Files) to navigate between tabs.

    Other handy actions from the Go To menu:

    • Back / Forward (Ctrl + Alt + /)

    • Last Edit Location (Ctrl + Shift + Backspace)


    Another option is to use the GoToTabs third-party plug-in:

    The plugin adds menu actions allowing you to go to a specific tab. You can of course assign keyboard shortcuts the individual actions and for example achieve the behavior known from other editors/IDEs where you can switch between tabs with alt+num.