有很多人要求和解决从vs到eclipse的问题,但不幸的是我会走另一条路。我是一个日食迷,但我现在必须使用vs 2010。 是否存在我可以导入的keybindings文件,它会给我最喜欢的eclipse键盘快捷键?
答案 0 :(得分:2)
另一种选择是使用AutoHotKey。 我完全熟悉从Eclipse迁移到VS的痛苦。 无论如何这里是我的AHK脚本。只需安装AHK,根据您的visual studio版本编辑/编辑该脚本并运行它。您无需在visual studio键绑定中更改任何内容。
有两种方法可以控制Windows上的任何应用程序,可以使用CTRL / SHIFT / ALT直接键盘快捷键,也可以使用ALT激活菜单栏,进一步输入F代表FILE,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
答案 1 :(得分:0)
您只能在我认为的选项中手动更改它们,但是一旦您这样做,您可以随时将它们导出(或者为想要使用相同键绑定的人释放它们)。除非有人想要导出他们的设置并将它们交给你。