Skip to content

Repository files navigation

Intellij IDEA Settings for Kotlin (MacOS Settings)

Better workflow , testing and debugging capability on your Kotlin Projects

Note: (Hide) CMD + H and (Minimize) CMD + M should be remapped using macos keyboard settings

Karabiner elements is required for Hyper Keys and Custom Tab Key

1. Download and Import kotlin-settings.zip
2. Install Plugins
  • IdeaVim
  • IdeaVim-EasyMotion
  • Key Promoter X
  • Ace Jump
3. Load `Masterpowers` keymap

Move the Downloaded file to your Home Directory ~/.ideavimrc

5. Learn The Keymap The Easy Way

Top Left Sidebar Tool Windows
Tool Window Keys (CMD+Fn Keys) LeftsidebarDescription
CMD+F1Project
CMD+F2Commit
CMD+F3Bookmarks
CMD+F4Resource Manager
CMD+F5Build Variants
Top Right Sidebar Tool Windows
Tool Window Keys (CMD+Fn Keys) RightSidebarDescription
CMD+F12Notifications
CMD+F11Gradle
CMD+F10Key Promoter X
CMD+F9Device Manager
CMD+F8Running Devices
Bottom Left Sidebar Tool Windows
Tool Window Keys (OPT+Keys) Leftsidebar BottomDescription
OPT+GGit
OPT+BBuild
OPT+SServices
OPT+PProblems
OPT+ELog Cat
OPT+DDebug
OPT+FFind
OPT+RRun
Fn Keys Mainly used for refactoring and documentation
Keyboard ShortcutsDescription
F1Quick Documentation
F2Rename
F3Refactor this
F4Change Signature
F5Load Changes
F11SDK Manager
F10Project Structure
Previews
Keyboard ShortcutsDescription
SHIFT+F1Editor
SHIFT+F2Editor and Preview
SHIFT+F3Preview
Runner
Keyboard ShorcutsDescription
CMD+RRun Context Configuration
CMD+SHIFT+RRun
CMD+TExternal Tools

Note: External Tools Command Available depends on what you configure on my machine i have the ff:

  • Kotlinc
  • Java Run

Et. al.

Nav Menus Top Right (Hidden on IntelliJ)
Keyboard ShorcutsDescription
OPT+F1Make Modules
OPT+F2Attach Debugger to Android Process
OPT+F3Sync Project With Gradle Files
Debugging
Keyboard ShorcutsDescription
CMD+BToggle Breakpoint
OPT+KResume/Pause Program
OPT+LStep Into
OPT+HStep Out
OPT+JStep Over
CMD+SHIFT+SStop
Errors / Warning
Keyboard ShortcutDescription
OPT+PTool Windows -> Problems
OPT+SHIFT+IInspect Code with Editor Settings
]+E (vim)Go To Error
[+E (vim)Go To Previous Error
TAB+EError Description

Note: Tab is mapped to CTRL+OPT+CMD using karabiner elements

Quickly Jump from One Place to Another

Note : This are all vim keys binded using .ideavimrc

Keyboard ShortcutDescription
SAce Word Start Action
leader+leader+wSearch Word Forward
leader+leader+bSearch Word Backward
leader+leader+fSearch Char Forward
leader+leader+FSearch Char Backward
Multi-Cursor / Selections
Keyboard ShortcutDescription
CMD+GFind Next / Move to Next Occurrence
CMD+SHIFT+GFind Previous / Move to Previous Occurrence
CMD+DAdd Selection for Next Occurrence
CMD+SHIFT+DUnselect Occurrence
CMD+SHIFT+LSelect All Occurrence
Code Completions
Keyboard ShortcutDescription
OPT+/Cyclic Expand Word
OPT+SHIFT+/Cyclic Expand Backward
OPT+SpaceBasic
OPT+ENTERType Matching
Type Hinting, Quick Fixes, Formatting
Keyboard ShortcutDescription
gpParameter Info
gtExpression Type Info
CMD+.Show Context and Show Quick Fixes
CMD+SHIFTT+IReformat Code
OPT+SPACEInsert Live Template
OPT+WSurround with
CMD+KCode Generate
CMD+LComplete Current Statement
GoTo
Keyboard ShortcutDescription
gd (Vim)Go to Declaration or Usages
gD (Vim)Go to TypeDeclaration
gu (Vim)Find Usages
gi (Vim)Go to Implementations
CMD+UGo to Super Method
SHIFT+K (Vim)Quick Definition
F1Quick Documentation
Finders
Keyboard ShortcutDescription
CMD+FFind
CMD+ERecent Files
CMD+SHIFT+FFind in Files
CMD+HReplace
CMD+SHIFT+HReplace in Files
SHIFT+SHIFTSearch Everywhere
CMD+PGo To File
CMD+SHIFT+PRun any Command
CMD+OGo to Symbol
CMD+SHIFT+OGo To Class
OPT+AGo to Action
OPT+TGo to Test
CMD+YFile Structure
Bookmarks
Keyboard ShortcutDescription
leader+[0-9]Go to Bookmark by number
leader+[a-z]Go to Bookmark by letter
'+[a-z]Toggle Bookmark by lettes
'+[0-9]Toggle Bookmark by number
Code Selections
Keyboard ShortcutDescription
OPT+DOWNShrink Selection
OPT+UPExpand Selection
Move Statements
Keyboard ShortcutDescription
OPT+SHIFT+JMove Statement Down
OPT+SHIFT+KMove Statement Up
Move Lines
Keyboard ShortcutDescription
CMD+SHIFT+JMove Line Down
CMD+SHIFT+KMove Line Up
Split Panes
Keyboard ShortcutDescription
s+pHorizontal Split
v+s++pVertical Split
Moving Across Panes
Keyboard ShortcutDescription
CTRL+HMove to Left Pane
CTRL+JMove Down Pane
CTRL+KMove to Right Pane
CTRL+LMove Up Pane
Tab Switching
Keyboard ShortcutDescription
CMD+[1-9]Select Tab [1-9]
CMD+[Select Previous Tab
CMD+]Select Next Tab
TAB+[Navigate Tab Back
TAB+]Navigate Tab Forward
Comments
Keyboard ShortcutDescription
CMD+/Comment with Line Comment
CMD+SHIFT+/Comment with Block Comment
Code Folding
Keyboard ShortcutDescription
CMD+(-)Folding Collapse
CMD+(+)Folding Expand
CMD+SHIFT+(-)Collapse All
CMD+SHIFT+(+)Expand All
File Manipulation
Shortcut KeysDescription
CMD+NNew
CMD+SHIFT+NNew Directory

Note: New has Different ways to create Files including Directory

File Editing
Shortcut KeysDescription
CMD+SSave all
CMD+XCut
CMD+VPaste
CMD+ZUndo
CMD+SHIFT+ZRedo
Notifications
Keyboard ShortcutDescription
CMD+F12Tool Windows -> Notification
CMD+SHIFT+F12Clear all Notifications
Context Menus
Keyboard ShortcutDescription
OPT+SHIFT+CShow Color Picker
CMD+MShow Context Menu
OPT+SHIFT+DSelect Available Devices
VCS
Keyboard ShortcutDescription
OPT+AAmend
OPT+CCommit File
OPT+SHIFT+AAdd to .gitignore
CMD+SHIFT+AAdd to VCS
CMD+SHIFT+URollback
CMD+SHIFT+MMove to other Changelist
Git History
Keyboard ShortcutDescription
OPT+SHIFT+RCompare with Revisions
CMD+SHIFT+YShow History / Diff
CMD+JNext Difference
CMD+KPrevious Difference
Linear Tasks
Linear KeysDescription
CMD+\Open Tasks
CMD+SHIFT+\Switch Tasks

Customizing IdeaVim Keys

  1. Press SHIFT+SPACE

  2. Select

IdeaVim: Track Action IDs

We can add custom bindings to our ~/.ideavimrc

nmap S <action>(AceWordStartAction)

Note:

AI Assistant like Gemini and Copilot is not added here.

About

Intellij IDEA Settings for Kotlin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors