Currently I have been using a custom keymap to bind "cmd+option+L" for detekt auto correct. I can very well use another keymap for detekt auto correct. But what if we introduce a feature where "cmd+option+L" would work seamlessly for both kotlin and non-kotlin files?
i.e "cmd+option+L" would:
Detekt auto correct if it is kotlin file
Or perform intellij based reformat if it is not kotlin file
Hm, I'm not sure if IntelliJ already supports running an action after save ?
Seems like some preconfigured options from IntelliJ.
I wonder if the api allows to register our actions to this menu:
Currently I have been using a custom keymap to bind "cmd+option+L" for detekt auto correct. I can very well use another keymap for detekt auto correct. But what if we introduce a feature where "cmd+option+L" would work seamlessly for both kotlin and non-kotlin files? i.e "cmd+option+L" would: