How can I change Delphi's 'Run' and 'Add Breakpoint' shortcut keys?

@Kobus, you can map the keys to simulate the behavior of visual Studio IDE using the "key mappings" tab, located in tools->Editor options menu.

see theses images (Delphi 7)

alt text

alt text

Delphi 2010

alt text

Another option is install Gexperts, and use the expert IDE menu shortcuts, This expert enables you to configure any of the IDE menu shortcuts.

alt text
(source: gexperts.org)


I personally use DPack which provides a Delphi keyboard mapping for Visual Studio plus a whole range of additional tools. It's also free :-)

Simon


I've found a better solution for me because the Visual Studio emulation is not the same as my VS and can't be customised and as Altar mentioned GExperts IDE menu shortcuts is not working with Delphi XE.

Using AutoHotkey I remap the keys using this script:

#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