+5
Completed

Project specific formatting

Matthew Johnston 7 years ago • updated by Jon Skinner 6 years ago 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?

Answer

Answer
Completed
Added in build 2111 - see http://www.sublimetext.com/docs/2/projects.html
Answer
Completed
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 :)