Home Download Buy Blog Forum Support

Tab settings

Tab settings

Postby lcrocker on Mon Apr 29, 2013 5:30 pm

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 <tab>, 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 <baskspace>, 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?
lcrocker
 
Posts: 1
Joined: Mon Apr 29, 2013 5:20 pm

Re: Tab settings

Postby skuroda on Mon Apr 29, 2013 6:25 pm

Add the following you your user settings

Code: Select all
"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.
skuroda
 
Posts: 689
Joined: Fri Oct 05, 2012 8:11 am

Re: Tab settings

Postby adzenith on Mon Apr 29, 2013 9:37 pm

I'd also turn off detect_indentation.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 18 guests