-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use Intellij built-in code formatter #8
Comments
Good idea! And thanks for the example link! |
Implemented here 😁 Be wary though, even with "Reformat" during a commit, not all ktlint rules are auto-fixed by the tool itself. Some need to be manually fixed, such as |
Wow, that was quick! :-D Thanks for that, I am going to take a look at it. The |
Yeah for that one specifically there's a few IDE settings to turn off the wildcard threshold in The command line utility for ktlint has a flag to set some IntelliJ settings, which might include that, but I'm holding off on implementing that part because they're talking about transitioning to an One improvement I might make as well is to turn off the "Format with ktlint" action for rules that are not auto-correctable. |
Closing since this particular issue is merged and ready for 0.5.0, but happy to continue the discussion 😁 |
It would be great to integrate the plugin with the built-in code formatter (CTRL-ALT-L). This would not only be easier regarding the shortcut, but would also give the possibility of checking "reformat code" when commiting code and reformat it automatically.
As an example, the plugin of prettier in the world of javascript is capable of doing so.
The text was updated successfully, but these errors were encountered: