EditorConfig
editorconfig.org
editorconfig.org
I like this, but the list of supported properties seems pretty short. I can see there might be some difficulties making it language-aware since the file formats are simple globs, but maybe you could say something like:
[*.js]
language_style = javascript
and somewhere describe that language_style in more detail.(The neat idea being: if a project has many languages, you can share code conventions for all of them in one place.)
Unfortunately many editors do not support project-level configuration files by default. A conversion tool could be a good way to make global configurations even more accessible for editors that do support project configuration files and don't have native EditorConfig support yet.
Until native support becomes more common, EditorConfig acts as an unopinionated universal editor-level linter of sorts.
The Eclipse plugin has a small bounty on it right now. Maybe someone will create one if some more money is pitched in: https://freedomsponsors.org/issue/271/support-eclipse
" Remove trailing whitespace for everything but markdown.
let whitespace_blacklist = ['markdown']
autocmd BufWritePre * if index(whitespace_blacklist, &ft) < 0 | :%s/\s\+$//e
There's also several ways to use Git for removing trailing whitespace, if you prefer that.I use Emacs but I hate with passion configuring it. Not anymore :)
I guess there could be conflicts with things like hotkeys, but some tweaking should get rid of such incompatibilities.
No one has submitted an Eclipse plugin yet, but we would love to help make one happen.