nbadal / ktlint-intellij-plugin

Ktlint plugin for IntelliJ IDEA + Android Studio
MIT License
151 stars 23 forks source link

Add option to autocorrect a single violation #482

Closed paul-dingemans closed 1 month ago

paul-dingemans commented 4 months ago

If a violation can be autocorrected, then offer a possibility to autocorrect that specific violation only.

Blocked by #385

QuinnBast commented 2 months ago

I'm going to assume this is what I need.

For more details, when using "Manual" mode, the plugin is able to detect violations, but there is no Alt+Enter context menu to automatically fix that violation.

image

In the "Unofficial" version of the plugin, it would highlight potential issues (like in the screenshot), but the Alt+Enter menu would allow you to auto-fix any fixable issues. Since this no longer exists I had to use "Distract Free" mode - but personally, I prefer Manual mode.

paul-dingemans commented 2 months ago

Please see https://github.com/nbadal/ktlint-intellij-plugin/issues/492#issuecomment-2019962905 why the Alt+Enter option was removed.

paul-dingemans commented 1 month ago

Closed by #533