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?


EDIT: spaces->tabs for makefiles
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.
Posts: 1403
Joined: Mon Oct 19, 2009 9:12 pm

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests