微软官方工具:https://docs.microsoft.com/zh-cn/windows/powertoys/
将开发环境从 Mac 改为 Windows 的指南:https://docs.microsoft.com/zh-cn/windows/dev-environment/mac-to-windows
我用的是Mac键盘,Win和Alt位置跟普通键盘不一样,如果是其它键盘根据实际情况调整即可,Mac键盘重新映射方案。
使用AutoHotkey软件修改键盘快捷键,配置文件如下:
;Alt+Tab 更换为 Ctrl + Tab
LWin & Tab::AltTab
LWin & a::Send {LCtrl Down}{a}{LCtrl Up}
LWin & b::Send {LCtrl Down}{b}{LCtrl Up}
LWin & c::Send {LCtrl Down}{c}{LCtrl Up}
LWin & d::Send {LCtrl Down}{d}{LCtrl Up}
LWin & e::Send {LCtrl Down}{e}{LCtrl Up}
LWin & f::Send {LCtrl Down}{f}{LCtrl Up}
LWin & g::Send {LCtrl Down}{g}{LCtrl Up}
LWin & h::Send {LCtrl Down}{h}{LCtrl Up}
LWin & i::Send {LCtrl Down}{i}{LCtrl Up}
LWin & j::Send {LCtrl Down}{j}{LCtrl Up}
LWin & k::Send {LCtrl Down}{k}{LCtrl Up}
LWin & l::Send {LCtrl Down}{l}{LCtrl Up}
LWin & m::Send {LCtrl Down}{m}{LCtrl Up}
LWin & n::Send {LCtrl Down}{n}{LCtrl Up}
LWin & o::Send {LCtrl Down}{o}{LCtrl Up}
LWin & p::Send {LCtrl Down}{p}{LCtrl Up}
LWin & q::Send {LCtrl Down}{q}{LCtrl Up}
LWin & r::Send {LCtrl Down}{r}{LCtrl Up}
LWin & s::Send {LCtrl Down}{s}{LCtrl Up}
LWin & t::Send {LCtrl Down}{t}{LCtrl Up}
LWin & u::Send {LCtrl Down}{u}{LCtrl Up}
LWin & v::Send {LCtrl Down}{v}{LCtrl Up}
LWin & w::Send {LCtrl Down}{w}{LCtrl Up}
LWin & x::Send {LCtrl Down}{x}{LCtrl Up}
LWin & y::Send {LCtrl Down}{y}{LCtrl Up}
LWin & z::Send {LCtrl Down}{z}{LCtrl Up}
; option+Shift+Right -> 向右选择一个单词
<!<+Right::Send {LCtrl Down}{RShift Down}{Right}{RShift Up}{LCtrl Up}
; option+Shift+Left -> 向左选择一个单词
<!<+Left::Send {LCtrl Down}{RShift Down}{Left}{RShift Up}{LCtrl Up}
; option+Left 向左跳转一个单词
!Left:: Send {LCtrl Down}{Left}{LCtrl Up}
; option+Right 向右跳转一个单词
!Right:: Send {LCtrl Down}{Right}{LCtrl Up}
; Cmd+Shift+Left -> 向左选择到行首
<#<+Left::Send {RShift Down}{Home}{RShift Up}
; Cmd+Shift+Right -> 向右选择到行尾
<#<+Right::Send {RShift Down}{End}{RShift Up}
; Cmd+Left 跳转到行首行
#Left::Send {Home}
; Cmd+Right 跳转到行首尾
#Right::Send {End}
; 删除一个单词
!Backspace:: Send {LCtrl Down}{Backspace Down}{LCtrl Up}{Backspace Up}
; 删除一行
#Backspace:: Send {RShift Down}{Home}{RShift Up}{Backspace Down}{Backspace Up}
;上一首
F7::Media_Prev
;暂停
F8::Media_Play_pause
;下一首
F9::Media_Next
;静音
F10::Volume_Mute
;音量小
F11::Volume_Down
;音量大
F12::Volume_Up