gpt4 book ai didi

eclipse - 更改 Visual Studio 2010 键绑定(bind)以匹配 Eclipse?

转载 作者:行者123 更新时间:2023-12-01 05:27:05 27 4
gpt4 key购买 nike

有很多人在询问从 vs 到 eclipse 的解决方案,但不幸的是,我选择了另一种方式。我是 eclipse 迷,但我现在必须使用 vs 2010。
是否存在我可以导入的键绑定(bind)文件,它会给我最喜欢的 Eclipse 键盘快捷键?

最佳答案

另一种选择是使用 AutoHotKey。
我完全熟悉从 Eclipse 迁移到 VS 的痛苦。
无论如何,这是我的 AHK 脚本。只需安装 AHK,根据您的 Visual Studio 版本编辑/此脚本并运行它。您无需更改 Visual Studio 键绑定(bind)中的任何内容。

有两种方法可以控制 Windows 上的任何应用程序,或者使用 CTRL/SHIFT/ALT 直接使用键盘快捷键,或者使用 ALT 激活菜单栏并进一步键入 F 代表 FILE,E 代表 EDIT 等等。以下脚本使用这两种类型的快捷方式,由您决定要使用哪种快捷方式。

我将以下脚本用于 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

关于eclipse - 更改 Visual Studio 2010 键绑定(bind)以匹配 Eclipse?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13350797/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com