NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Editor Settings depending on File Type (Extension)


Joined: 24 Mar 2010
Posts: 27
Reply with quote
... Sometimes it could be helpful to define Editor Settings depending on the File Type.

For example:

Makefiles use <tab> Characters. (We uses Gnu Make to translate our lessc Files).
.php Files expand <tab> to 4 <space>es.

Greetings
Eutychus
View user's profileFind all posts by eutychusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7823
Reply with quote
I'ts already possible in a flexible way. What you need is .editorconfig
It's fully supported in v18. See http://editorconfig.org/ for further details

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 24 Mar 2010
Posts: 27
Reply with quote
Oh, that's cool.

When is .editorconfig file reloaded? Once after loading a Project or Workspace?
View user's profileFind all posts by eutychusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7823
Reply with quote
a file? There could be many. For example if you open c:\myproject\js\something\something2\filename.txt, it will try to find .editorconfig in all parent subdirectories:
c:\myproject\js\something\something2\
c:\myproject\js\something\
c:\myproject\js\
c:\myproject\
until root = true is found
and each particular property can be defined in any of them, or in them all.

.editorconfig files are checked each time you open a file

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Editor Settings depending on File Type (Extension)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic