有很多人在询问从vs到eclipse的问题和解决方案,但不幸的是,我走的是另一条路。我是eclipse的粉丝,但我现在必须使用VS2010。有没有一个我可以导入的快捷键文件,可以提供我最喜欢的eclipse键盘快捷键?
发布于 2014-11-04 10:06:13
另一种选择是使用AutoHotKey。我完全熟悉从Eclipse迁移到VS的痛苦。无论如何,这是我的AHK脚本。只需安装AHK,根据您的visual studio版本编辑/此脚本并运行它。您不需要更改visual studio键绑定中的任何内容。
有两种方法可以控制windows上的任何应用程序,一种是使用CTRL/SHIFT/ALT键直接使用键盘快捷键,另一种是使用ALT键激活菜单栏,然后键入F表示文件,E表示编辑等等。下面的脚本使用这两种类型的快捷键,并由您决定使用哪种快捷键。
我在visual studio express 2012版本中使用了以下脚本。
; ^ stands for Ctrl
; ! stands for Alt
; + stands for Shift
SetTitleMatchMode, 2
#IfWinActive, Microsoft Visual Studio Express ;any part of the name of the window
^PgDn::Send ^!{PgDn} ; next opened doc (tab navigation shortcut like in firefox/chrome)
^PgUp::Send ^!{PgUp} ; previous opened doc (tab navigation shortcut like in firefox/chrome)
^b::Send ^{F7} ; compile the current file
^/::Send ^{e}{c} ; comment Ctrl+e+c
^+/::Send ^{e}{u} ; uncomment Ctrl+e+u
^k::Send ^{F3} ; find next Ctrl+F3
^w::Send ^{F4} ; close tab Ctrl+f4
^Enter::Send {F12} ; go to defi/decl
^!Enter::Send ^+{g} ; open file under cursor (for headers) Ctrl+g
^+Enter::Send !{e}{i}{q} ; show quick info Alt+e+i+q (Using menu bar)
!Right::Send ^+{-} ; navigate last position
!Left::Send ^{-} ; navigate next position
^e::Send !{v}{i} ; error window
^+TAB::Send !{v}{p} ; solution explorer
; add here
return
#IfWinActive
发布于 2012-11-12 20:24:43
你只能在我相信的选项中手动修改它们,但是一旦你这样做了,你就可以在你想要再次使用它们的时候导出它们(或者为想要相同键绑定的人释放它们)。当然,除非有人想要导出他们的设置并将其提供给您。
https://stackoverflow.com/questions/13350797
复制