32

In Sublime Text 3, is there a way to reorganize tabs using keyboard only?

I know you can switch a tab from a pane to another pane using for example ctrl+shift+2 to move a tab from pane X to pane 2 but it's not exactly what I am looking for.

I am looking to move a tab in its pane. For example, I have 3 tabs and I want to interchange tab 1 and 2. It's doable using the mouse but I have not found any keyboard shortcut for it.

Tabs in their original position

Tabs in position 1

Tab 1 has been moved one the right

Tabs in position 2

MattDMo
  • 5,409
Gab
  • 1,167

2 Answers2

50

Nope. However, the following plugin will give you that functionality.

https://github.com/SublimeText/MoveTab

You can install it by pressing Ctrl+Shift+P (Command palette), type/select Package Control: Install Package, then MoveTab.

Then you can immediately move tabs with Ctrl+Shift+PgUp and Ctrl+Shift+PgDn.

Mercer
  • 643
9

On a related note: while this is not the answer to your exact question, many people landing on this page (myself included) may be looking for how to switch tabs with the keyboard.

Here's how to do that:

  • Tab navigation:
    • Cycle through open tabs in the order they were opened = Ctrl + Tab / in opposite order they were opened = Ctrl + Shift + Tab
    • Cycle through tabs to the Left / Right = Ctrl + Page Up / Page Down

Source where I learned some of that: https://forum.sublimetext.com/t/switching-tabs-with-keyboard/427