Reformat code as part of the "normal" Intellij flow
See original GitHub issueHello,
First of all this plugin is really nice, thanks alot for it!
While using it I was quite surprised that the default Reformat code
shortcut did nothing. After some fiddling I found out the Haskell reformat is actually in Code / Haskell / Reformat XXX
and not the standard Code / Reformat code
menu.
Is there any reason stylish and/or hindent are not plugged on the “normal” Code / Reformat code
menu? This would mean 1 shortcut no matter the language (we use several languages in my project), and more importantly, this would allow us to use the extremely useful Reformat code
checkbox when committing with Intellij (everybody does that in the team so that we never have to worry about code style).
That would be awesome 😄
Also, it seems we can’t assign the same shortcut to both Code / Reformat code
and Code / Haskell / Reformat XXX
so it’s not even possible to use the same shortcut for Haskell and non-Haskell projects.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top GitHub Comments
Yes, I changed the way it overrides the default and appears to help in your case 😄
Hopefully all the other features also work like a charm 😉
Beta 23 just tested.
Did you change something about the shortcut? Now the default one (Ctrl + Alt + L on Windows) works!
And I confirm the “Haskell reformat code” works like a charm too. Thanks a lot for the effort, it’s appreciated!
This is yet another step into making Haskell adoption a lot easier 😄