Sublime Forum

Tabs in Makefiles only?

#1

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

0 Likes

#2

If you make a file called Makefile.sublime-settings in your Packages/User directory, and put this in it:

{
	"translate_tabs_to_spaces": false
}

then it should override your user settings for makefiles only.

1 Like