Wednesday Mar 12, 2014

EditorConfig and NetBeans IDE (Part 3)

Ultimately, org.netbeans.spi.project.ui.ProjectOpenedHook should be used. When a project opens, a FileChangeListener should start listening recursively from the project root downwards for the presence of .editorconfig files. No explicit Action should be needed, i.e., automatically the listening should begin and, if an .editorconfig file is found, it should be applied to the level where it applies.

The relevant properties are not many.

  • indent_style
  • indent_size
  • tab_width
  • end_of_line
  • charset
  • trim_trailing_whitespace
  • insert_final_newline
  • max_line_length

Just the above 8, apparently nothing more than that.


Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« March 2014 »