如何更改Delphi的"运行"和"添加断点"快捷键?

Kob*_*mit 16 delphi customization keyboard-shortcuts

如何在Delphi中更改IDE键盘快捷键?

我想从" F9改为" F5 和"添加断点" F5更改为F9

我目前正在家里编写Delphi,在工作中使用C#,这两个快捷键令人困惑,因为它们是彼此的对立面!

RRU*_*RUZ 22

@Kobus,您可以使用位于工具 - >编辑器选项菜单中的"键映射"选项卡映射键以模拟visual Studio IDE的行为.

看这些图像(Delphi 7)

替代文字http://i48.tinypic.com/35a9frl.png

替代文字http://i50.tinypic.com/20ixnb4.png

Delphi 2010

alt text http://i50.tinypic.com/5v9jyt.png

另一个选项是安装Gexperts,并使用专家IDE菜单快捷方式,此专家允许您配置任何IDE菜单快捷方式.

alt text http://www.gexperts.org/tour/ide%20menu%20shortcuts.png


Sim*_*ett 5

我个人使用DPack,它为Visual Studio提供Delphi键盘映射以及一系列其他工具.它也是免费的:-)

西蒙


Kob*_*mit 4

我找到了一个更好的解决方案,因为 Visual Studio 模拟与我的 VS 不同,并且无法自定义,而且正如 Altar 提到的,GExperts IDE 菜单快捷方式不适用于 Delphi XE。

使用AutoHotkey,我使用以下脚本重新映射按键:

#IfWinActive, ahk_class TAppBuilder
;Set breakpoint
F5::F9
;Run
F9::F5
;Step Over
F10::F8
;Trace Into
F11::F7
;Delete line
^l::^y
;Switch between form and code
F7::F12
;Find Declaration
F12::Send !{Up}
;Navigate Back
^-::Send !{Left}
;Navigate Forward
^=::Send !{Right}
;Duplicate Line
+Enter::^!+d
;Incremental Search
^i::^e
Run Code Online (Sandbox Code Playgroud)