+5
Ukończony

Project specific formatting

Matthew Johnston 14 lat temu Ostatnio zmodyfikowane przez Jon Skinner 13 lat temu 1
I switch between Rails dev, PHP Dev and javascript dev that each have different requirements for using tab spacing and converting tabs to spaces. Is their a way we can have Project Specific Formatting, extend basically the user preferences down to the project preference?

Odpowiedź

Odpowiedź
Ukończony
Added in build 2111 - see http://www.sublimetext.com/docs/2/projects.html
Odpowiedź
Ukończony
Added in build 2111 - see http://www.sublimetext.com/docs/2/projects.html

It's possible currently, just add this to your .sublime- project file:


"settings":

  {

      "tab_size": 2,

      "translate_tabs_to_spaces": true

  },


Unfortunately because of the config file processing order, it's not possible to override a Package setting here. I'm using PHP_CodeSniffer and I would like to use different standards for different projects, so I'm opening a new feature request :)