IntelliJ IDEA shortcut for switching to tab by number
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.
The IDE itself still doesn't support it but I've created a plugin (GoToTabs
) that will add "Go to tab #" actions you can assign keyboard shortcuts to (e.g. ctrl+1).