Sublime Forum

How to insert a tab

#1

I used to be able to force the insertion of a tab by pressing alt+tab but for some reason this now executes switch_tabs , which opens a panel. Is there any way I can map it back to insert an actual tab? Simply pressing tab doesn’t always work because sometimes it autocompletes. Example:

hel<cursor here, press tab> => hello<cursor still here>

What I want is:

hel<cursor here, press tab> => hel<tab><cursor here>

0 Likes

#2

alt+tab has always been an OS wide shortcut for switching between open windows - have you tried shift+tab?

1 Like

#3

I have. It doesn’t work though. I don’t mind adding it with a new shortcut, but I just don’t know what command I should use to add a tab

0 Likes

#4

The command is this, you can put it on the user key bind file:

	{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
1 Like

#5

That’s exactly what I needed. Thank you!!

1 Like