Sublime Forum

Tab settings

#1

I’ve tried out Sublime Text for a couple of weeks now, and I’m almost convinced. I will definitely pull the trigger (buy it and abandon my previous editor) if I can figure out how to configure it to handle tabs the way i want. So here’s what I want the editor to do:

When I type , advance to the next 4-space tab stop by inserting spaces. It would be nice (but not a deal-breaker) if, when the cursor is on a tab column on an otherwise blank line, and I press , to retreat one tabstop and remove the spaces. Most of all, I want it to never, ever, under any circumstances, insert a tab character into the file UNLESS the current file being edited is a Makefile (which it should be able to either deduce from content or simply by name beginning with “Makefile”).

Is this possible?

0 Likes

#2

Add the following you your user settings

"translate_tabs_to_spaces": true

I believe Makefile already has a syntax specific settings making this false, so you don’t have to do anything else.

0 Likes

#3

I’d also turn off detect_indentation.

0 Likes