Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Auto Correct Kotlin file on "cmd+option+L" but perform traditional intellij based reformat for non-kotlin files #500

Open
sachin-tripactions opened this issue Nov 29, 2023 · 1 comment
Labels
feature New feature or request

Comments

@sachin-tripactions
Copy link

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:

  1. Detekt auto correct if it is kotlin file
  2. Or perform intellij based reformat if it is not kotlin file
@arturbosch
Copy link
Member

arturbosch commented Dec 19, 2023

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:

Screenshot from 2023-12-19 23-44-26

@arturbosch arturbosch added the feature New feature or request label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants