Coderush, an IDE enhancement control of Delphi

Source: Internet
Author: User

Coderush: this year, coderush is the fifth time that readers of Delphi informant have selected the top three-party plug-ins. The following describes the general usage of this plug-in. (I am too lazy and have a limited level. If this is not correct, I hope you will not be able to point out ^_^)
If you turn off Delphi and install coderush, it is not very difficult. After installation, coderush is integrated with Delphi ide. After startup, A New Delphi development interface will appear. Of course, I still cannot see any flowers. Now let's make a simple Cr tour.
The CR function interface is as follows: one is the enhancement function on the Form Designer, and the other isCodeAuxiliary Design functions are enhanced.

 

Let's take a look at its Form Designer. There are 10 functional buttons in the table below:

 

By using these buttons, you can make the interface design more convenient. The following describes several commonly used buttons:
Lock control-lock Control
The lock controls function of the tool is the same as that of the edit menu, but it is placed on the form design interface. You do not need to open the edit menu call every time. The cancellation is the same as locking. Just click.
Quick connect-quick connection
When you want to assign an associated control to a property of a control, you need to find the related control in the object inspector. With this, you can perform a lot of operations. Click drag. For example, you need to allocate popmenu to memo. Press quick connect and select memo. You can see a small square. Press and hold the square and drag it to popmenu. The connection line appears ~~ To cancel the operation, click the small square and select memo. popmenu = nil from the shortcut menu.
Reveal link-associated display
If many controls are placed in the form design, the association relationships between controls (especially those between databases and datasets) are often mixed, all you need to do is press the real link button-the world is quiet ~ As follows:

 

 

Show active datasets-show activated Datasets
This feature allows you to quickly find an activated dataset in a bunch of datasets, and press the show active datasets button. If a dataset is activated, the dataset is surrounded by a red border, showing inactive and inactive datasets.

 

Show unnamed components-display unnamed controls
What is not named here specifically refers to the meaning of incorrect naming, that is, the default name provided by Delphi is used without assigning values to it. In a relatively large system development, if the component is not properly named, the code readability will be very bad. If you do not name the component correctly, the component will be surrounded by an orange border. As follows:

 

The role of Cr is not only that. In fact, it is more powerful than that-its code editing function is even more terrible (Oh, it should not be too much to use this word): it is more powerful, design is more considerate and easy to use. Of course, development is faster (it may be too early for me to be a bird like me ). Now let's take a look at this power.
AutoFill-Automatic Code Filling
With this function, you only need to enter a part of the code During encoding. Cr will then automatically enter the following code for you to save time. For example: input for in the Code Editor and Press spacebar to automatically give the for loop structure, and even set the variables for you. If you enter try or while, similarly, the following code is automatically generated, and when you input parentheses, it will automatically complete for you.
Begin end pairing
If a function or process has to write a large number of begin and end code disconnections, the logical relationship cannot be easily clarified. Cr solves this problem for you, it connects each in and end and places the cursor on begin. Press the shortcut key Ctrl + [to automatically jump to the corresponding end.
Toggle bookmark-trigger bookmarks
Delphi's bookmarking function is too weak to be annotated, while Cr provides a strong bookmarking function. In addition to bookmarking, you can also define images, it is implemented by using the graphic command to trigger file opening. Unfortunately, bookmarks cannot be set and searched across files. Use the CTRL + Click key that comes with Delphi to complete the process. The following is the bookmark editing interface:
You can add a note to this bookmarks in the notes, so that you can find the bookmarks you want. The current status is that you can open the questionnaire with this bookmarks, however, make sure that "open file in Delphi" is selected.

 

File Manager-File Manager
File ManagementProgramThe Administrator provides a good way to manage files and Delphi source files in the project. In the file manager, you can add or delete files, and the File Manager also provides the favorites function, you can place projects and related source files that you are developing recently in a virtual directory and quickly access them through favorite directories if necessary. When you need to browse the source code of VCL, in the file manager, you can directly jump to the VCL directory under source, the Sys directory in RTL, and the win directory. You only need to select a unit, open it directly in Delphi. On the properties page of the file manager, you can also define which buttons are to be displayed and hide those buttons to make them conform to your usage habits.
Search files-enhanced file search functions
Delphi's search function can only be carried out in a single file, and its function is too weak. Cr can be used in all open files, one-time search of all files in the project and all unit files used in the unit ...... The search result shows the row where the character is located and the row where the current row is located in the source file. Double-click a record and the cursor will quickly locate the row in the source file.
Quick browsing
In Cr, five quick browsing functions are provided: Unit list, quick jump, class jump, class list, and method list.
In the units list, you can quickly select a unit in the project;
By using quick jump, you can easily jump to the interface, implementation, and initialization of the modified unit;
By using class jump, you can quickly jump to the private, protected, and public declarations or method interfaces of the class;
In the class list, you can find the classes in the project. After you select a class, all the methods of the class will appear in the class method list, which is sorted alphabetically,

In general, Cr is powerful and can bring great convenience and practicality to our work when writing code. But at the same time, we also see its huge resource consumption, however, as hardware performance continues to rise and prices fall, I believe it is still a good programming tool.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.