sindresorhus / atom-editorconfig

Helps developers maintain consistent coding styles between different editors
https://atom.io/packages/editorconfig
MIT License
812 stars 80 forks source link

Provide an option to autofix for common configuration issues #105

Closed florianb closed 1 year ago

florianb commented 7 years ago

Things we could fix immediately:

Prerequisites:

jokeyrhyme commented 7 years ago

disable packages which are known to prevent editorconfig from working (like the unholy whitespace-package)

I would like this, too, but only if no .editorconfig file is found. For a project that is not using EditorConfig, the default whitespace-package should be restored.

But if .editorconfig is found, then automatically disable the whitespace-package.

florianb commented 7 years ago

I think that's the way to go. However, before we can disable it we must provide its full functionality. Which means we should be able to convert spaces to tabs and vice versa, since this is probably one of the most used functions after putting a foreign file under editorconfig.

luiscobot commented 7 years ago

Hi, can we have autofix on save to identation style? thanks

florianb commented 7 years ago

Hi @unluisco this issue is dedicated to fix configuration issues. I consider fixing the identation style on save being too expensive compared to its benefit - so it is unlikely this will come.

Please use the EditorConfig: Fix File-command to fix the identation-style after pasting code or putting files under .editorconfig.

florianb commented 5 years ago

I decided to drop maintenance. Sorry.

See https://github.com/sindresorhus/atom-editorconfig/issues/231

sindresorhus commented 1 year ago

Closing as Atom is abandoned.