Sublime Forum

<Tab><Tab> Indentation stopping

#1

I’m trying to figure out how to stop ST from ignoring my request for a tab when I hit it. I currently have tabs set to 2 spaces, and I’m working on .jade files. I’ve tried to set “autoIndent” : false in my Packages/User/Jade.sublime-settings file, but it doesn’t seem to do anything.

I would like for ST to autoIndent intelligently, but if I explicitly hit a tab from what ST thinks is the farthest it should indent, I would like it to go another 2 spaces.

block content
  ul
  li //Here it should be indented two more spaces if I hit tab
0 Likes

#2

So the cursor is in front of “li”, and then you press tab, and nothing happens?

0 Likes

#3

Correct. I think this behavior happens everywhere, where hitting when ST thinks it’s as far as it should be. It doesn’t bother me in javascript files, because it is pretty much always correct.

In this case, it doesn’t know what to do. Hitting tab leaves it before the

  • . Shift-tab works as expected, moving left one .

    Ideally on or on on any line should put you to where ST thinks you should be… if I hit tab again, it should move one to the right.

  • 0 Likes