Sublime Forum

Enhance tab behavior within a line

#1

I haven’t purchased Sublime Text yet, but I’m certainly well on my way towards reaching that conclusion! Great software, thanks!

The one gripe I have so far is tab behavior within a line, particularly a Python dict. I’d like if subsequent tabs would align with the beginning of the line (and not current position). This might even be a preference somewhere but I didn’t find it.

Starting text without tabbing

vals = {
    "server":"irc.aaaa.net",
    "port":6667,
    "channel":"#aaaa",
    "nick":"aaaa",
    "pass":"aaaa",
    "owner":"aaaa",
}

What happens when I tab-out the key/value separation

vals = {
    "server":    "irc.aaaa.net",
    "port":    6667,
    "channel":    "#aaaa",
    "nick":    "aaaa",
    "pass":    "aaaa",
    "owner":    "aaaa",
}

What I wish happened

vals = {
    "server":   "irc.aaaa.net",
    "port":     6667,
    "channel":  "#aaaa",
    "nick":     "aaaa",
    "pass":     "aaaa",
    "owner":    "aaaa",
}

Make sense?

0 Likes

#2

I have the same problem.
I have “Indent using spaces” checked, with “Tab width” set to 4.

Pressing Tab always insert 4 spaces instead of respecting virtual tab stops

0 Likes

#3

This looks fixed in the 20091212 beta. Thanks!

0 Likes