Sublime Forum

Settings per filetype (syntax)?

#1

Hello there.

I would like to set this : true

// Set to true to insert spaces when tab is pressed "translate_tabs_to_spaces": false,
just for python/django files…

would like to set a different font too…
example: For python I prefer Dejavu Sans Mono, while for html / css I like Consolas more…

Is it possible to do ?
Thank you

0 Likes

#2

You need to open (or set syntax to) a file with syntax you want. This case py.
Then you go to preferences->File settings - more -> syntax specific - user.
You add there whatever you want to and you are set.

0 Likes

#3

Done. THANK YOU.
<3 Sublime :smile:

0 Likes