分享
 
 
 

Shortcut Keys of Delphi

王朝delphi·作者佚名  2006-01-08
窄屏简体版  字體: |||超大  

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 网站转载请注明作者 其他转载方式请与作者联系(idilent@yahoo.com.cn)。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有