How to insert a tab character in sublime text

keyboard shortcutssublime-text-3

I am trying to insert a tab into a document in Sublime Text. I am using tabs for indentation. Usually, I can insert a tab by pressing → Tab. However, sometimes instead of inserting a tab character, this performs a word completion.

It's hard to predict when this will happen, but when I notice it, I then press Backspace                → Tab Backspace

Is there a better way?

Best Answer

Do you find the word completion feature helpful? If not then turn it off and I'm sure that will fix your problem.

Alternatively if you press shift+tab then that will insert a literal tab.

Or you can disable tab completion by adding this line to Preferences/File Settings - User:

"tab_completion": false

Source

Related Question