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

mjdl

  • Senior Community Member
  • Posts: 151
  • Hero Points: 18
  • SE Pro 2023 v28.0.1.0 64-bit Qt5 Win 11 23H2
.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: 6826
  • Hero Points: 526
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: 2620
  • Hero Points: 210
  • 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: 6826
  • Hero Points: 526
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.