Created
September 3, 2018 22:58
-
-
Save kapresoft/bee88e2e673fb0c4e4efc96238486715 to your computer and use it in GitHub Desktop.
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
; AutoHotKey: Mac key bindings for IntelliJ/Android Studio for Windows | |
#IfWinActive ahk_exe idea64.exe || ahk_exe studio64.exe | |
; ====== COMMON ======================================== | |
; Find Action (⌘+Shift+A) -> (Ctrl+Shift+A) | |
#+a:: | |
{ | |
Send ^+a | |
Return | |
} | |
; ====== EDITING ======================================= | |
; Duplicate Line (⌘+D) -> (Ctrl+D) | |
#d:: | |
{ | |
Send ^d | |
Return | |
} | |
; Delete Line (⌘+Backspace) -> (Ctrl+Y) | |
#backspace:: | |
{ | |
Send ^y | |
Return | |
} | |
; Quick Documentation (F1) -> (Ctrl+Q) | |
F1:: | |
{ | |
Send ^q | |
Return | |
} | |
; Find (⌘+F) -> (Ctrl+F) | |
#f:: | |
{ | |
Send ^f | |
Return | |
} | |
; Find in Path (⌘+Shift-F) -> (Ctrl+Shift+F) | |
#+f:: | |
{ | |
Send ^+f | |
Return | |
} | |
; Replace (⌘+R) -> (Ctrl+R) | |
#r:: | |
{ | |
Send ^r | |
Return | |
} | |
; Replace in Path (⌘+Shift+R) -> (Ctrl+Shift+R) | |
#+r:: | |
{ | |
Send ^+r | |
Return | |
} | |
; Move Statement Up (⌘+Shift+Up) -> (Ctrl+Shift+Up) | |
#+up:: | |
{ | |
Send !+{Up} | |
Return | |
} | |
; Move Statement Down (⌘+Shift+Down) -> (Ctrl+Shift+Down) | |
#+down:: | |
{ | |
Send !+{Down} | |
Return | |
} | |
; Extend Selection (⌘+Up) -> (Ctrl+W) | |
!up:: | |
{ | |
Send ^w | |
Return | |
} | |
; Shrink Selection (⌘+Down) -> (Ctrl-Shift+W) | |
!down:: | |
{ | |
Send ^+w | |
Return | |
} | |
; New (⌘+N) -> (Alt+Insert) | |
#n:: | |
{ | |
Send !{Insert} | |
Return | |
} | |
; Complete Current Statement (⌘+Shift+Enter) -> (Ctrl+Shift+Enter) | |
#+enter:: | |
{ | |
Send ^+{Enter} | |
Return | |
} | |
; Toggle Case (⌘+Shift+U) -> (Ctrl+Shift+U) | |
#+u:: | |
{ | |
Send ^+u | |
Return | |
} | |
; ====== NAVIGATION ==================================== | |
; Jump to Navigation Bar (⌘+Up) -> (Alt+Home) | |
#up:: | |
{ | |
Send !{Home} | |
Return | |
} | |
; Navigate to Declaration (⌘+LeftClick) -> (Ctrl+LeftClick) | |
#LButton:: | |
{ | |
KeyWait, LButton, D | |
Send ^{LButton} | |
Return | |
} | |
; Navigate to Declaration (⌘+B) -> (Ctrl+B) | |
#b:: | |
{ | |
Send ^b | |
Return | |
} | |
; Navigate to previous word block | |
!Left:: | |
{ | |
Send ^{Left} | |
Return | |
} | |
; Navigate to next word block | |
!Right:: | |
{ | |
Send ^{Right} | |
Return | |
} | |
; Go to Line Number (⌘+Shift+L) -> (Ctrl+G) | |
#+L:: | |
{ | |
Send ^g | |
Return | |
} | |
; Hide All Windows (⌘+Shift+F12) -> (Ctrl+Shift+F12) | |
#+F12:: | |
{ | |
Send ^+{F12} | |
Return | |
} | |
; Select Next Tab (⌘+Shift+]) -> (Alt-Right) | |
#+]:: | |
{ | |
Send !{Right} | |
Return | |
} | |
; Select Previous Tab (⌘+Shift+[) -> (Alt-Left) | |
#+[:: | |
{ | |
Send !{Left} | |
Return | |
} | |
#1:: | |
{ | |
Send !1 | |
Return | |
} | |
#2:: | |
{ | |
Send !2 | |
Return | |
} | |
#4:: | |
{ | |
Send !4 | |
Return | |
} | |
#5:: | |
{ | |
Send !5 | |
Return | |
} | |
#6:: | |
{ | |
Send !6 | |
Return | |
} | |
#7:: | |
{ | |
Send !7 | |
Return | |
} | |
#9:: | |
{ | |
Send !9 | |
Return | |
} | |
; ====== WINDOWS / TABS ================================ | |
; Close Tab (⌘+W) -> (Ctrl+F4) | |
#w:: | |
{ | |
Send ^{F4} | |
Return | |
} | |
; ====== SOURCE CONTROL ================================ | |
;; commit | |
#k:: | |
{ | |
Send ^k | |
Return | |
} | |
; Update Project (⌘+T) -> (Ctrl+T) | |
#t:: | |
{ | |
Send ^t | |
Return | |
} | |
; ====== RUN / DEBUG =================================== | |
!^d:: | |
{ | |
Send +{F9} | |
Return | |
} | |
!^r:: | |
{ | |
Send +{F10} | |
Return | |
} | |
Return | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment