2012-11-12 38 views
3

有很多人要求和解決從vs到eclipse的問題,但不幸的是,我正走向另一條路。我是一個eclipse迷,但我現在必須使用vs 2010。 是否存在我可以導入的鍵綁定文件,它會給我我最喜歡的eclipse鍵盤快捷鍵?更改Visual Studio 2010鍵綁定以匹配eclipse?

回答

0

你只能手動更改他們相信選擇,但一旦你做,你可以導出他們要再次使用它們隨時(或釋放他們誰想要同樣的按鍵綁定的人)。當然,除非有人想出口它們的設置並將它們提供給你。

+0

好,這就是我在獲得。很明顯,很多人已經爲vs2010-> eclipse做過這個,但是我想知道是否有人爲我們這些人做了這樣的事情而陷入另一種情況。 – stu

2

另一種選擇是使用AutoHotKey。我完全熟悉從Eclipse遷移到VS的痛苦。 無論如何,這裏是我的AHK腳本。只需安裝AHK,根據您的visual studio版本編輯/此腳本並運行它。你不需要在visual studio鍵盤綁定中改變任何東西。

有兩種方法可以控制窗口上的任何應用程序,可以使用CTRL/SHIFT/ALT鍵直接鍵入快捷鍵,也可以使用ALT鍵激活菜單欄,然後​​爲FILE鍵入F,編輯E鍵等等。以下腳本使用兩種類型的快捷方式,並由您決定要使用快捷方式的方式。

我使用的Visual Studio下面的腳本表示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