Author Topic: .editorconfig files in SE 21  (Read 1718 times)

mjdl

  • Senior Community Member
  • Posts: 139
  • Hero Points: 16
  • SE 23.0.2 hotfix 2 x64 Windows 10 v1903
.editorconfig files in SE 21
« on: September 13, 2016, 04:17:48 pm »
How do they work in SE 21? (No documentation in RC1, at least by a quick search in Help.)
They override/change relevant file options set in SE 21 when enabled (Options-->General). If so, will subsequently changing file options in SE then ignore or overwrite them? And does SE 21 search for and apply them in a manner similar to that set out at EditorConfig.org's "Example File" page, namely
Quote
Where are these files stored?

When opening a file, EditorConfig plugins look for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.

EditorConfig files are read top to bottom and the closest EditorConfig files are read last. Properties from matching EditorConfig sections are applied in the order they were read, so properties in closer files take precedence.

This sounds like an excellent useful feature, reducing uncertainty about what basic formatting parameters are being applied to files. I admit I haven't heard of .editorconfig files before. And the "root=true" .editorconfig file feature would fit in nicely with SE source file project roots, if observed by SE.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4797
  • Hero Points: 388
Re: .editorconfig files in SE 21
« Reply #1 on: September 14, 2016, 03:11:29 pm »
Hmm...help on this could be better.

Turn on .editorconfig support (Tools>Options>Editing>General> Apply .editorconfig file settings). SlickEdit supports the glob syntax and applies options as specified by editorconfig. Supports indent_style, indent_size, tab_width, end_of_line, and trim_trailing_whitespace properties.

An options search for .editorconfig worked.

jporkkahtc

  • Senior Community Member
  • Posts: 1792
  • Hero Points: 174
  • Text
Re: .editorconfig files in SE 21
« Reply #2 on: September 19, 2016, 06:25:34 pm »
Slickedit isn't listed on http://editorconfig.org/ as a supporting editor.




FeatureRequest: Options Export to EditorConfig would be pretty nifty.




Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4797
  • Hero Points: 388
Re: .editorconfig files in SE 21
« Reply #3 on: September 19, 2016, 07:33:08 pm »
We will contact them to get us listed once v21 is released.