Shortcut Keys of Delphi

zhaozj2021-02-16  49

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 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 KeyFunctionSupplementctrl spaceGet 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 cComplete the class at cursorIf 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 arrowGo to the declare part of the method whose body part is at cursor. ctrl shift down arrowGo to the body part of the mothod whose declare part is at cursor. ctrl o cChange the select way to verticalAfter you press this shortcut key , and you can select the code vertically. (Only help you select vertically using key (shift arrow).) ctrl o kChange back to normal state form the above one. F12Toggle between the code screen and the form one. ctrl F12VIEW Units (You Will Get a Units List After Pressi ng 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 Delphishift F12 View FormsYou will get a forms list after pressing.alt F12Use unitYou 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) .F9RunIf you are debug, it will run to the end of this funcition. ctrl F9Compile ctrl

F2Program resetStop the run state.F5Add (Delete) break point on the line at the cursor F8When you debug, step one line code. F7When you debug, step into the method on the line. F4When you debug, run to the line at the cursor . ctrl F5Inspect the value of the variant at the cursor. alt F5Add to watch at the cursor ctrl jGet 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 Insightctrl fOpen 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 F11Open project ctrl clickWhen 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 F11Show the Object Spector or the form window if they are not visible Copyright:.. idilent Please contact the author in contact with the author in other reprints. Please contact the author (iDilent@yahoo.com.cn).

转载请注明原文地址:https://www.9cbs.com/read-24373.html

New Post(0)