注解的快速鍵 |
尚未結案
|
webber
初階會員 發表:54 回覆:76 積分:26 註冊:2004-04-20 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
|
webber
初階會員 發表:54 回覆:76 積分:26 註冊:2004-04-20 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
引言: 而且新增Method, property, procedure都蠻麻煩的 不知道有沒有精靈之類的東東Create your declaration in the class type, press Ctrl-Shift-C < face='Lucida Console'>http://pywong.hk.st http://www.lazybones.ca |
webber
初階會員 發表:54 回覆:76 積分:26 註冊:2004-04-20 發送簡訊給我 |
http://www.reusable.com/Library/IDETips.htm Delphi and C++Builder IDE Tips and Techniques (This section will be enhanced as time permits. For the most recent version, check out our web site at http://www.reusable.com. Feel free to send us your favorite tips.)
Column Cut and Paste Using Shift+Alt with any arrow key puts the Delphi editor into column mode. All subsequent selections are marked in rectangular blocks until the mouse is clicked.
Alternatively you can press Ctrl-O+C to start go into column mode and Ctrl-O+K to go back to block mode. This capability makes it much easier to move comments around or to create repetitive sections of code.
Block Indent Indenting code blocks makes it much easier to read and debug your code.
Select the lines of text you want to indent or outdent.
Press Ctrl+K to prepare the editor for a block command.
Press I to indent, U to unindent (or outdent).
The Block Indent field on the Editor page under Environment Options allows you to set the amount to indent or outdent. By convention this value is usually set to 2. BEWARE: Don’t press Ctrl-I. This will cause selected text to be replaced with a TAB character. NOTE: You may also use Ctrl+Shift+I and Ctrl+Shift+U. Note that the Ctrl and Shift must be pressed simultaneously with I or U. This is different than using Ctrl+K which places the editor into block mode.
Keyboard Macros Press Ctrl-Shift+R to start recording then Ctrl-Shift+R again to stop recording. Press Ctrl-Shift+P to play the last recorded macro. Macros cannot be saved.
Bookmarks Press Ctrl-Shift and any number key to set a bookmark. Press Ctrl and the number key matching an existing bookmark to go to a bookmark.
Component Navigation The Enter key can be used to toggle between the Form Designer and the Object Inspector. This facilitates editing properties on several components without switching between the mouse and the keyboard. Select a component as a starting point then press Enter – this will place you into the Object Inspector. Change any properties you wish then press Enter again. You’ll be switched back to the Form Designer. Now you can use the arrow keys to move to another component and set its properties.
NOTE: The IDE allows for components to be moved using the arrows keys with the Ctrl key. This moves the component one pixel at a time. If you want to move the component using the grid spacing, hold down both the Shift and Ctrl keys while using the arrow keys.
Class Completion
(D4) Delphi 4 allows for automatic implementation of the methods and properties of a class. At minimum, a property’s name and type should be declared.
Press Ctrl-Shift-C to generate skeletons for all of the methods and to complete the basic implementation of the properties.
Implmentation/ Interface Toggle (D4) Press Ctrl-Shift-Down to move between the declaration of a method and the implementation.
Unit/Class Hyperlink (D4) Hold down the Ctrl key while moving the mouse to turn the Delphi Code Editor into a hyperlinked document. Click on a class name to go to the source code for that class. Click on a unit name to open that unit.
Change Case
Press Ctrl-K-E to convert a selected block of text to all lowercase. Press Ctrl-K-F for all uppercase.
(contributed by Kevin Berry)
Find Compilation Errors Press Alt-F8 to step to the next compilation error in your code. Press Alt-F7 to step to the previous error.
(contributed by Kevin Berry)
Creating GUIDs (Guaranteed Unique ID) This is necessary for COM and highly recommended when creating interfaces (required if interfaces will be automated). Press Ctrl-Shift-G to create a new GUID. Don't worry about wasting them. The uniqueness is determined by your machine configuration, network card address, the current date and time and other factors that virtually guarantee that no two GUIDs will be the same. K.Top是我見過最棒的程式社群
如果沒有K.Top真不知道該怎麼活 |
goat
高階會員 發表:53 回覆:130 積分:134 註冊:2002-06-03 發送簡訊給我 |
使用這個GExperts外掛工具就可以了 Ctrl Alt .註解 Ctrl Alt ,取消註解 以上單行或多行都可以,很方便。 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |