Home Download Buy Blog Forum Support

Tabs in Makefiles only?

Tabs in Makefiles only?

Postby tom on Wed Mar 09, 2011 7:26 pm

Hello all,

I generally use spaces instead of tabs for code. This doesn't work for Makefiles though, which require tabs for separators. Is there a way to configure Sublime Text 2 to use tabs for Makefiles only?

cheers,
tom

EDIT: spaces->tabs for makefiles
tom
 
Posts: 1
Joined: Wed Mar 09, 2011 7:23 pm

Re: Tabs in Makefiles only?

Postby adzenith on Wed Mar 09, 2011 10:47 pm

If you make a file called Makefile.sublime-settings in your Packages/User directory, and put this in it:
Code: Select all
{
   "translate_tabs_to_spaces": false
}

then it should override your user settings for makefiles only.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 31 guests