Editor options for Delphi code editor

Source: Internet
Author: User

You can select"PropertiesMenu item to view the editor options. You can also choose 【Tools | editor OPTIONS...] Open the editor option dialog box. For example:

The following sections describe each page.

1. General page

These two pages are used to control how the editor works. There are many options.

"Editor speedsetting"Combo box, you can choose from a variety of settings, such:

If you change the settings of this combo box,Editor options"Will change accordingly.

"Undo limit"Undo the step count setting, set to 32767 to meet the vast majority of requirements, generally do not have to modify this setting.

"Find text at cursor"Option is usually selected. After this option is selected, when the find text dialog box is called, the text at the cursor is automatically edited and placed in the" text to find "Field of the dialog box. In this way, you do not need to enter the body to be searched, thus accelerating the speed.

2. Source options page

"Block indentAndTab stops"Option is used to set the number of indented cells and the number of cells skipped by the tab key. Generally, it can be set to 2 characters.

"ExtensionsTo highlight the syntax. For example, you may not want to highlight the regular text files opened in the Code Editor (* .txtworkflow into the line syntax, because the TXT file type is not set in this example.

Click"Edit code templates..."Button to bring up the code template dialog box, such:

 

3. Display page

"Display and file options", You will see"Brief cursor shapes"Option. If you want the cursor in the editor window to be a horizontal cursor rather than a Vertical cursor, select this option.

If you want to create a backup file each time you save your file or project, you can selectCrate backup file"Option, backup file extensions are replaced by font size (~) Headers. For example, the backup file MyApp. PAS in the source file is MyApp .~ Pa.

Note

Anyway, I feel that backup files are very annoying because they always mess up the directories of projects. Therefore, you prefer to disable the file backup option.

"Zoom to full screen"Option controls the action when code editor is extremely large. If this option is selected, the entire screen is filled with code editor. If this option is not selected (default, the code editor window ends at the bottom of the Delphi main window. In other words, if this option is not selected, the Delphi main window is always visible when the code editor is very large.

"Visible right margin"Is used to display a boundary on the right boundary of the editor, but you can still enter a body outside the boundary. It is just a sign, prompting the user to enter a line that is too long. For example:

"Visible gutter"Option is used to determine whether there is a visible groove and the width of the groove (in pixels ).

You can also changeEditor font"Option to select the most appropriate font and size.

4. Key mappings page

You can quickly switch the keyboard ing mode andEnhancement modulesYou can set the enhancement module.

5. color page

The code page allows you to customize the code editor window and highlight the syntax options, as shown above.

"Color speedsettingBox lists the following predefined color formats for users to choose from. As follows:

You can select one of the color formats or use one of the color formats as the basis to create your own color formats.

The color page is easy to use. A text window at the bottom of the page contains a preview of the sample code. Click any element in the Code preview,ElementThe selected elements in the list box are highlighted. To change the foreground color, background color, and body attributes, you only need to select the settings you like.

6. Code insight page

The Code insight page is used to allow or disable"Code Completion","Code Parameters","Tooltip expression evaluationAndTooltip symbol insight".

Marked with"DelayThe scroll bar is used to set the latency of the above four code features.

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.