delphi code editor All hotkeys(Delphi 代码编辑器中所有热键)

来源:互联网 发布:防范电信网络诈骗宣传 编辑:程序博客网 时间:2024/06/05 21:30

注:已翻译的都是测试过的命令,未翻译的是不能在我本机实现的。

 

CTRL+J - Invoke code templates(请求代码模板)

 

CTRL+T - Delete current word(删除当前单词)

 

 CTRL+E - Incremental search(渐进式查找)

 

 CTRL+Y - Delete current line(删除当前行)

 

 CTRL+SHIFT+G - Insert a new GUID at the cursor position(在光标处插入一个新的GUID)

 

 CTRL+SHIFT+I - Indent the current selected block(缩进当前选择的代码块)

 

CTRL+SHIFT+U - outdent the current selected block(凸出当前选择代码块)

 

 CTRL+SHIFT+Y - delete to the end of line(删除从当前位置到行尾的全部字符)

 

 CTRL+SHIFT+J - Invoke syncedit(注:不知何意,功能同CTRL+J)

 

ALT+[ - match pair forward(向前匹配']')

ALT+] - match pair backward(向后匹配']')

 

 ALT+RightArrow - browse forward (hotlink history)

ALT+LeftArrow - browse backward (hotlink history)

 ALT+UpArrow - browse to symbol under editor cursor(invoke a hotlink and add it to the hotlink history)

 

F4 - Run program to current cursor position(运行程序到光标所在位置)

 

 F5 - Toggle breakpoint(断点开关)

 

F7 - Debugger step into(迈进调试)

F8 - Debugger step over(步过调试)

 F9 - Run program under debugger(调试运行程序)

 

 F12/CTRL+F12 - View units(切换查看单元和窗体文件)

 

 ALT+G - Goto line number in editor

 

 CTRL+SHIFT+R - Start/Stop recording editor macro(开始/停止记录编辑器宏)

 CTRL+SHIFT+P - Play editor macro(播放编辑器宏)

 

 CTRL+SPACE - Invoke code completion

 CTRL+SHIFT+SPACE - Invoke code parameter hints

 

CTRL+ENTER - Open file at cursor(打开文件)

 

CTRL+SHIFT+C - Invoke class completion for the class that currently contains the cursor

 

 CTRL+SHIFT+UpArrow - Navigate to method implementation/declaration(导航方法的定义/实现)

 CTRL+SHIFT+DownArrow - Navigate to method implementation/declaration

 

CTRL+ALT+UpArrow - Navigate to previous method implementation in lexical order

 CTRL+ALT+DownArrow - Navigate to next method implementation in lexical order

 CTRL+ALT+Home - Navigate to the lexically first method implementation in this source unit

 CTRL+ALT+End - Navigate to the lexically last method implementation in this source unit

 CTRL+/ - Toggle comment per line or selected block