Skip to content

Instantly share code, notes, and snippets.

@maio
Last active August 26, 2025 13:54
Show Gist options
  • Select an option

  • Save maio/61bae21d0420490a39a1f31338e291cf to your computer and use it in GitHub Desktop.

Select an option

Save maio/61bae21d0420490a39a1f31338e291cf to your computer and use it in GitHub Desktop.
IntelliJ IDEA shortcuts
// https://gist.github.com/maio/61bae21d0420490a39a1f31338e291cf
import com.intellij.openapi.keymap.KeymapManager
import liveplugin.PluginUtil.assignKeyStroke
import liveplugin.implementation.Actions
val keymap = KeymapManager.getInstance().activeKeymap
// Remove ijkl plugin shortcuts which we don't want
keymap.removeShortcut("RenameElement", Actions.asKeyboardShortcut("alt R")!!)
keymap.removeShortcut("ReopenClosedTab", Actions.asKeyboardShortcut("ctrl shift T")!!)
// https://centic9.github.io/IntelliJ-Action-IDs/
assignKeyStroke("RefactoringMenu", "alt R, alt R")
assignKeyStroke("ExtractMethod", "alt R, alt M")
assignKeyStroke("Inline", "alt R, alt N")
assignKeyStroke("IntroduceParameter", "alt R, alt P")
assignKeyStroke("IntroduceVariable", "alt R, alt V")
assignKeyStroke("SelectNextOccurrence", "alt G")
assignKeyStroke("GotoTest", "ctrl shift T")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment