-
Couldn't load subscription status.
- Fork 1
Description
Background
Not sure how it works in IntelliJ, but in Eclipse, most of the properties cannot be "unset", in sense to make the IDE not to perform the associated check (and correction).
An example: Eclipse's equivalent of indent_style can be either space or tab. It is not possible to configure the formatter in such a way that it leaves the indentation as it is.
In editorconfig the situation is different: all common properties are unset by default, basically meaning that the editor should not perform any related action.
The proposal
To make both worlds to work together, I propose to define a default for each property. E.g. indent_style would have default space which would be effective for the formatter in case indent_style is not set in .editorconfig. Actually indent_style is not a good example because it is not from the Java domain that we define here. But I hope you get the idea.
Technical
Some ideas how to implement the defaults:
- Clearly a Java class with constants would do the job for us, but would not be usable at all for non-Java implementations of this standard.
- So we need to take some structured file format, e.g. properties, .editorconfig itself, or even this editorconfig defaults json: https://github.com/editorconfig/editorconfig-defaults
WDYT @dyadix ?