Sublime Forum

Sublime Text Tab Switching

#1

Can someone explain to me how Ctrl+tab works? I have a hunch it has something to do with either the order the tabs were opened or last accessed, but frankly I find this behavior confusing.

Is there any way to switch it to just left-to-right tab switching?

0 Likes

Ctrl+Tab / Ctrl+Shift+Tab moving through tabs in wrong order
Jump back one whole file at a time?
#2

It works in the same way alt+tab does (or command+tab on OS X), by switching between tabs in a most-recently-used stack. When you release ctrl, the currently selected file is moved to the top of the stack.

For other ways to switch files, including switching directly to the left and right one, take a look at the “File/Switch File” menu.

0 Likes

#3

File/Switch now are placed Goto/Switch

To me that behaviour also confusing.

You can change behaviour like this: Preferences/Key bindings - User

{ "keys": "ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": "ctrl+pageup"], "command": "prev_view_in_stack" },

{ "keys": "ctrl+tab"], "command": "next_view" },
{ "keys": "ctrl+shift+tab"], "command": "prev_view" }

]

PS. sublimetext.com/blog/article … build-2165
From description CTRL+P has different commande that is described

3 Likes

#4

@KES – Great, thanks for that!

0 Likes

#5

For switching left/right in mac you can use

File on left side - [command + alt + left arrow]
File on right side - [command + alt + right arrow]

0 Likes

#6

On Mac, command-shift- and command-shift-] also seem to work.

1 Like

#7

“super+shift+[”
“super+shift+]”

is for far better :slightly_smiling:

0 Likes

#8

The [ symbol is needed after each “keys”: string. Thus, it is as follows:

[

{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },

{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }

]

Thank you though, it’s what I was looking for. :slight_smile:

0 Likes

#9

[ characters got stripped from many code posts during the move from phpBB to Discourse in early 2016.

0 Likes

#10

As a user searching for an answer, I did not see that anywhere in the solution.

Maybe @KES could update his post?
Thanks for the info, @FichteFoll.

0 Likes

#11

Well, if you understand JSON it should be pretty clear what is going on. I’ll admit that without knowing JSON you’re likely going to have a hard time with the various old code snippets on this forum, but you’re in for a rough ride with configuring Sublime Text anyway if that is the case.

I hope they teach JSON in school now, or similar. They certainly didn’t 8 years ago.

0 Likes