个人快捷键记忆表

3 minute

Preface

MacOS & Windows Shortcuts.

MacOS Shortcuts

CMD » CMD + SHIFT

Key Func Scope Config
` Move Focus To Next Window ALL
- Zoom Out ALL
+ Zoom In ALL
Tab Switch Apps ALL
Q Quit App ALL
W Close ALL
E Pasteboard ALL Clipy
R Replace, Refresh ALL
T New Tab Browser
Y Everything IDE IDE
U Usage IDE IDE
I Insert Code IDE IDE
O Optimize IDE IDE
P System Screenshot ALL Settings
[ Fold » Fold All IDE IDE
] Unfold » Unfold All IDE IDE
\ Terminal IDE IDE
A All ALL
S Save ALL
D Duplicate Tab, Split Right Browser, IDE Settings, IDE
F Find ALL
G Globally Find IDE IDE
H Hide ALL
J Execute IDE IDE
K Debug IDE IDE
L Line IDE IDE
;
'
Z Undo » Redo ALL
X Cut ALL
C Copy ALL
V Paste » Paste As Plain Text ALL
B Refactor IDE IDE
N New Window ALL
M Minimize ALL
,
.
/ Comment IDE
Space Search ALL
RK Forward ALL IDE
LK Backward ALL IDE
UK Debug: Step Over IDE IDE
DK Debug: Step Into IDE IDE

Windows Shortcuts

CTRL » CTRL + SHIFT

Key Func Scope Config
` Move Focus To Next Window ALL AutoHotkey
- Zoom Out ALL
+ Zoom In ALL
Tab Switch Apps ALL PowerToys
Q Quit App ALL PowerToys
W Close ALL
E Translate » Translate(OCR) ALL Pot
R Replace, Refresh ALL
T New Tab Browser
Y Everything IDE IDE
U Usage IDE IDE
I Insert Code IDE IDE
O Optimize IDE IDE
P Snipaste » System Screenshot ALL Snipaste, Game Bar
[ Fold » Fold All IDE IDE
] Unfold » Unfold All IDE IDE
\ Terminal IDE IDE
A All ALL
S Save ALL
D Duplicate Tab, Split Right Browser, IDE AutoHotkey, IDE
F Find ALL
G Globally Find IDE IDE
H Hide ALL PowerToys
J Execute IDE IDE
K Debug IDE IDE
L Line IDE IDE
;
'
Z Undo » Redo ALL
X Cut ALL
C Copy ALL
V Paste » Paste As Plain Text ALL
B Refactor IDE IDE
N New Window ALL
M Minimize ALL PowerToys
,
.
/ Comment IDE
Space Search ALL PowerToys
RK Forward ALL IDE
LK Backward ALL IDE
UK Debug: Step Over IDE IDE
DK Debug: Step Into IDE IDE

WIN

Key Func
RK Window Right Half
LK Window Left Half
UK Window Maximize
DK Window Almost Maximize
V Pasteboard
L Lock Screen
R Execute
X Quick Links
G Game Bar

FN

Key Func
F2 Rename
F5 Refresh
F11 Full Screen

AutoHotkey

  1. Install AutoHotkey;
  2. Edit script;
  3. Put script to startup folder(CMD+R >> shell:startup).

app_windows_switch

 1#Requires AutoHotkey v2.0
 2
 3^`::
 4{
 5    win_id := WinActive("A")
 6    win_class := WinGetClass("A")
 7    active_process_name := WinGetProcessName("A")
 8    ; We have to be extra careful about explorer.exe since that process is responsible for more than file explorer
 9    if (active_process_name = "explorer.exe")
10        win_list := WinGetList("ahk_exe" active_process_name " ahk_class" win_class)
11    else
12        win_list := WinGetList("ahk_exe" active_process_name)
13    
14    ; Calculate index of next window. Since activating a window puts it at the top of the list, we have to take from the bottom.
15    next_window_i := win_list.Length
16    next_window_id := win_list[next_window_i]
17    
18    ; Activate the next window and send it to the top.
19    WinMoveTop("ahk_id" next_window_id)
20    WinActivate("ahk_id" next_window_id)
21}

chrome_duplicate_tab

1#IfWinActive ahk_exe chrome.exe
2^d:: ; Ctrl + D 
3Send, ^l ; url
4Send, ^c ; copy
5Send, ^t ; new tab
6Send, ^v ; paste url
7Send, {Enter} ; open
8return
9#IfWinActive