Visual studio windows和应用程序键是否可以用于visual studio 2010中的自定义绑定

Visual studio windows和应用程序键是否可以用于visual studio 2010中的自定义绑定,visual-studio,keyboard-shortcuts,Visual Studio,Keyboard Shortcuts,是否有人知道是否可以在VisualStudio2010中使用windows键或应用程序键以某种方式添加自定义键盘绑定 我想映射Windows键+HJKL以替换“使用我的箭头键”。但是,我不想丢失这些键(+CTL、SHIFT或ALT)上的当前绑定 我查看了vssettings文件,密钥绑定如下所示: <Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Ctrl+W</Shortcut> <Sh

是否有人知道是否可以在VisualStudio2010中使用windows键或应用程序键以某种方式添加自定义键盘绑定

我想映射Windows键+HJKL以替换“使用我的箭头键”。但是,我不想丢失这些键(+CTL、SHIFT或ALT)上的当前绑定

我查看了vssettings文件,密钥绑定如下所示:

<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Ctrl+W</Shortcut>
<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Windows+W</Shortcut>
#h::Send {Left}
#^h::Send ^{Left}
#!h::Send !{Left}
#+h::Send +{Left}
#^!+h::Send ^!+{Left}
#^!h::Send ^!{Left}
#^+h::Send ^+{Left}
#!+h::Send !+{Left}

#k::Send {Right}
#^k::Send ^{Right}
#!k::Send !{Right}
#+k::Send +{Right}
#^!+k::Send ^!+{Right}
#^!k::Send ^!{Right}
#^+k::Send ^+{Right}
#!+k::Send !+{Right}

#u::Send {Up}
#^u::Send ^{Up}
#!u::Send !{Up}
#+u::Send +{Up}
#^!+u::Send ^!+{Up}
#^!u::Send ^!{Up}
#^+u::Send ^+{Up}
#!+u::Send !+{Up}

#j::Send {Down}
#^j::Send ^{Down}
#!j::Send !{Down}
#+j::Send +{Down}
#^!+j::Send ^!+{Down}
#^!j::Send ^!{Down}
#^+j::Send ^+{Down}
#!+j::Send !+{Down}

#y::Send {PgUp}
#^y::Send ^{PgUp}
#!y::Send !{PgUp}
#+y::Send +{PgUp}
#^!+y::Send ^!+{PgUp}
#^!y::Send ^!{PgUp}
#^+y::Send ^+{PgUp}
#!+y::Send !+{PgUp}

#i::Send {PgDn}
#^i::Send ^{PgDn}
#!i::Send !{PgDn}
#+i::Send +{PgDn}
#^!+i::Send ^!+{PgDn}
#^!i::Send ^!{PgDn}
#^+i::Send ^+{PgDn}
#!+i::Send !+{PgDn}

#8::Send {End}
#^8::Send ^{End}
#!8::Send !{End}
#+8::Send +{End}
#^!+8::Send ^!+{End}
#^!8::Send ^!{End}
#^+8::Send ^+{End}
#!+8::Send !+{End}

#7::Send {Home}
#^7::Send ^{Home}
#!7::Send !{Home}
#+7::Send +{Home}
#^!+7::Send ^!+{Home}
#^!7::Send ^!{Home}
#^+7::Send ^+{Home}
#!+7::Send !+{Home}
Ctrl+W
所以我想做的是这样的:

<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Ctrl+W</Shortcut>
<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Windows+W</Shortcut>
#h::Send {Left}
#^h::Send ^{Left}
#!h::Send !{Left}
#+h::Send +{Left}
#^!+h::Send ^!+{Left}
#^!h::Send ^!{Left}
#^+h::Send ^+{Left}
#!+h::Send !+{Left}

#k::Send {Right}
#^k::Send ^{Right}
#!k::Send !{Right}
#+k::Send +{Right}
#^!+k::Send ^!+{Right}
#^!k::Send ^!{Right}
#^+k::Send ^+{Right}
#!+k::Send !+{Right}

#u::Send {Up}
#^u::Send ^{Up}
#!u::Send !{Up}
#+u::Send +{Up}
#^!+u::Send ^!+{Up}
#^!u::Send ^!{Up}
#^+u::Send ^+{Up}
#!+u::Send !+{Up}

#j::Send {Down}
#^j::Send ^{Down}
#!j::Send !{Down}
#+j::Send +{Down}
#^!+j::Send ^!+{Down}
#^!j::Send ^!{Down}
#^+j::Send ^+{Down}
#!+j::Send !+{Down}

#y::Send {PgUp}
#^y::Send ^{PgUp}
#!y::Send !{PgUp}
#+y::Send +{PgUp}
#^!+y::Send ^!+{PgUp}
#^!y::Send ^!{PgUp}
#^+y::Send ^+{PgUp}
#!+y::Send !+{PgUp}

#i::Send {PgDn}
#^i::Send ^{PgDn}
#!i::Send !{PgDn}
#+i::Send +{PgDn}
#^!+i::Send ^!+{PgDn}
#^!i::Send ^!{PgDn}
#^+i::Send ^+{PgDn}
#!+i::Send !+{PgDn}

#8::Send {End}
#^8::Send ^{End}
#!8::Send !{End}
#+8::Send +{End}
#^!+8::Send ^!+{End}
#^!8::Send ^!{End}
#^+8::Send ^+{End}
#!+8::Send !+{End}

#7::Send {Home}
#^7::Send ^{Home}
#!7::Send !{Home}
#+7::Send +{Home}
#^!+7::Send ^!+{Home}
#^!7::Send ^!{Home}
#^+7::Send ^+{Home}
#!+7::Send !+{Home}
Windows+W

这当然是行不通的。有人知道实现这一点的方法吗?

对于其他感兴趣的人,我最终使用了。我的脚本如下所示:

<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Ctrl+W</Shortcut>
<Shortcut Command="Edit.SelectCurrentWord" Scope="Text Editor">Windows+W</Shortcut>
#h::Send {Left}
#^h::Send ^{Left}
#!h::Send !{Left}
#+h::Send +{Left}
#^!+h::Send ^!+{Left}
#^!h::Send ^!{Left}
#^+h::Send ^+{Left}
#!+h::Send !+{Left}

#k::Send {Right}
#^k::Send ^{Right}
#!k::Send !{Right}
#+k::Send +{Right}
#^!+k::Send ^!+{Right}
#^!k::Send ^!{Right}
#^+k::Send ^+{Right}
#!+k::Send !+{Right}

#u::Send {Up}
#^u::Send ^{Up}
#!u::Send !{Up}
#+u::Send +{Up}
#^!+u::Send ^!+{Up}
#^!u::Send ^!{Up}
#^+u::Send ^+{Up}
#!+u::Send !+{Up}

#j::Send {Down}
#^j::Send ^{Down}
#!j::Send !{Down}
#+j::Send +{Down}
#^!+j::Send ^!+{Down}
#^!j::Send ^!{Down}
#^+j::Send ^+{Down}
#!+j::Send !+{Down}

#y::Send {PgUp}
#^y::Send ^{PgUp}
#!y::Send !{PgUp}
#+y::Send +{PgUp}
#^!+y::Send ^!+{PgUp}
#^!y::Send ^!{PgUp}
#^+y::Send ^+{PgUp}
#!+y::Send !+{PgUp}

#i::Send {PgDn}
#^i::Send ^{PgDn}
#!i::Send !{PgDn}
#+i::Send +{PgDn}
#^!+i::Send ^!+{PgDn}
#^!i::Send ^!{PgDn}
#^+i::Send ^+{PgDn}
#!+i::Send !+{PgDn}

#8::Send {End}
#^8::Send ^{End}
#!8::Send !{End}
#+8::Send +{End}
#^!+8::Send ^!+{End}
#^!8::Send ^!{End}
#^+8::Send ^+{End}
#!+8::Send !+{End}

#7::Send {Home}
#^7::Send ^{Home}
#!7::Send !{Home}
#+7::Send +{Home}
#^!+7::Send ^!+{Home}
#^!7::Send ^!{Home}
#^+7::Send ^+{Home}
#!+7::Send !+{Home}
只需将其保存到“启动”文件夹(扩展名为.ahk)中的一个文件中

谢谢大家