Last active
May 28, 2022 11:46
-
-
Save dkandalov/d51de2311dfd92dfa56feb3e3f9f96a6 to your computer and use it in GitHub Desktop.
Workaround for https://youtrack.jetbrains.com/issue/IDEA-171273 (use https://github.com/dkandalov/live-plugin to run the code snippet)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.intellij.openapi.actionSystem.* | |
val newElementActionGroup = ActionManager.getInstance().getAction(IdeActions.GROUP_NEW) as DefaultActionGroup | |
val newKotlinFileAction = ActionManager.getInstance().getAction("Kotlin.NewFile") as AnAction | |
newElementActionGroup.remove(newKotlinFileAction) | |
newElementActionGroup.add(newKotlinFileAction, Constraints.FIRST) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment