+5
COMPLETADO

Project specific formatting

Matthew Johnston hace 13 años actualizado por Jon Skinner hace 13 años 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?

Respuesta

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