Shortcut Keys of Delphi

原创 2003年07月18日 07:16:00

If you never used the shortcut keys of Delphi, you would not be aware that it is a wonderful thing. But as soon as you begin, you will never give it up. My suggestion on it is that using shortcut keys when you begin to program with Delphi. It will give you a lot of help.

The following is some of the Delphi shortcut keys(if you have not changed them yet) which I think is very usually used. You can get more from the Delphi help file. If you think some others are important too, you can tell me by the email.

Shorcut Key Function Supplement
ctrl + space Get the name of methods or variants, if after an Object, you will get the list of Object's property and methods. If the input method has used this shortcut key, you should change it to make it can be used in delphi.
ctrl + shift + c Complete the class at cursor If you add some methods to a class, what you need to do is just writting the declaration in the interface part of the class and use this shorcut key to get the body part.
ctrl + shift + up arrow Go to the declare part of the method whose body part is at cursor.  
ctrl + shift + down arrow Go to the body part of the mothod whose declare part is at cursor.  
ctrl + o + c Change the select way to vertical After you press this shortcut key, and you can select the code vertically.(Only help you select vertically using key(shift + arrow).)
ctrl + o + k Change back to normal state form the above one.  
F12 Toggle between the code screen and the form one.  
ctrl + F12 View units(You will get a units list after pressing this shortcut key. ) If you install the PowerWord, this shortcut key will be occured by this software, you can change it to make it can be used in Delphi
shift + F12 View Forms You will get a forms list after pressing.
alt + F12 Use unit You will get a units list from which you can select the unit you want to use(add the unit name to the use part of implemetation).
F9 Run If you are debug, it will run to the end of this funcition.
ctrl + F9 Compile  
ctrl + F2 Program reset Stop the run state.
F5 Add(Delete) break point on the line at the cursor  
F8 When you debug, step one line code.  
F7 When you debug, step into the method on the line.  
F4 When you debug, run to the line at the cursor.  
ctrl + F5 Inspect the value of the variant at the cursor.  
alt + F5 Add to watch at the cursor  
ctrl + j Get the template of some useful code structure. For example for,try etc. You can add what you like by the following Tools/Editor Options/Code Insight
ctrl + f Open the searching dialog and the word at the curor has been the content of searching(Of course you can change it ).  
F3 Find next one.  
alt + F11 Open project  
ctrl+click When you write code, you can use this way to go to the declaration of the method at the cursor, when you debug, you can get the property or value of the variant at the cursor.  
F11 Show the Object Spector or the form window if they are not visible.  

版权所有:idilent 网站转载请注明作者 其他转载方式请与作者联系(。


99-6-26 关于SQL的一点疑问今天在写一个数据库应用程序时,用到了一个SQL查询select name // 从基本信息表中取姓名并要满足下面条件from an01where s...
  • Jason009
  • Jason009
  • 2006年09月21日 14:47
  • 2918

Excel Shortcut Keys[转载]

My friend mailed me these shortcut keys. Hope this will be useful for someone. - CTRL combination sh...
  • flashdragon
  • flashdragon
  • 2010年04月29日 23:23
  • 503

shortcut keys for linux

Toggle hide/show the desktop (great to hide the Solitaire game when your boss walks in). ...
  • belinda_wei80
  • belinda_wei80
  • 2012年11月13日 09:40
  • 131

Source Insight Shortcut Keys

shift+F5 选择单词
  • ronaldinho2014
  • ronaldinho2014
  • 2014年05月20日 16:43
  • 480

List of Xcode Shortcut keys

In my point of view using shortcut keys are much faster then using mouse. So I always prefer to expl...
  • zypsg
  • zypsg
  • 2009年06月27日 09:25
  • 1065

Visual Studio shortcut keys

Visual Studio shortcut keys You are familiar with many of Visual Studio's shortcut keys, bu...
  • werey
  • werey
  • 2012年10月25日 11:44
  • 992

Delphi Hidden shortcut

CTRL + E,即刻匹配查找 CTRL + J,代码模板,这个非常好用,省得打 begin end...
  • any2mobile
  • any2mobile
  • 2013年03月22日 06:17
  • 342

Several shortcut keys in Visual Studio 2010

Ctrl-K + Ctrl-C:注释一段选择代码 Ctrl-K + Ctrl-U:取消一段选择代码的注释 Ctrl+K+F:格式化整个块 References: http://...
  • wangj_ustc
  • wangj_ustc
  • 2013年03月19日 17:18
  • 345

地址栏图标更换即shortcut icon问题

为了是地址栏可以显示自己的网站图标,可以在网页添加如下代码: 注:1、后边这两句也可以不添加,图片的路径可以使相对的也可以是绝对的          2、在IE6下...
  • bgc525725278
  • bgc525725278
  • 2011年09月22日 16:07
  • 3611

Disabling Shortcut Keys in Full Screen mode

  • phinecos
  • phinecos
  • 2008年04月17日 11:51
  • 441
您举报文章:Shortcut Keys of Delphi