Language Options
Go Up to Editor Options
Tools > Options > User Interface > Editor > Language
Use this page to configure Code Editor settings for various types of source files.
Item | Description |
---|---|
Language | Choose a predefined or customized source file type. Choices are: C/C++, C#, Default, HTML, IDL, INI File, JavaScript, Objective C++, Pascal, PHP, SQL, Style Sheet, Visual Basic .NET, and XML. |
Contents
Options tab
Tools > Options > User Interface > Editor > Language and click on Options tab.
Item | Description |
---|---|
Auto indent mode |
Positions the cursor under the first nonblank character of the preceding nonblank line when you press |
Use tab character |
Inserts tab characters when you press |
Smart tab |
Tabs to the first non-whitespace character in the preceding line. If Use tab character is enabled, this option is off. |
Cursor through tabs |
Enables the |
Optimal fill |
Begins every auto-indented line with the minimum number of characters possible, using tabs and spaces as necessary. |
Backspace unindents |
Aligns the insertion point to the previous indentation level (outdents it) when you press |
Keep trailing blanks |
Prevents trailing blanks from being truncated. |
Show tab character |
Displays tab characters as >>, if Use tab characters is selected. |
Show space character |
Displays typed spaces as dots (.). |
Use syntax highlight |
Enables syntax highlighting. To set highlighting options, use the Color page. |
Show line breaks |
Displays line break symbols at the end of each line. |
Highlight current line |
Highlights the current line in the Code Editor. |
Tab stops |
Set tabs stops that the cursor will move to when you press |
Block indent |
Specifies the number of spaces to indent a marked block. The default is 2; the upper limit is 16. |
Syntax Highlighter tab
Tools > Options > User Interface > Editor > Language and click on Syntax Highlighter tab.
Item | Description |
---|---|
Syntax Highlighter |
Choose an option to change the format for displaying code elements. Check Use syntax highlighting to enable this option. |
Error Insight tab
Tools > Options > User Interface > Editor > Language and click on Error Insight tab.
Item | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Show Error insight levels |
Underlines invalid code and HTML. Positioning the cursor over invalid text displays a tooltip window containing the probable cause of the error. Choose the level of error insight you want to see.
| ||||||||||
Editor rendering style |
Choose the editor rendering style, choices are: | ||||||||||
Show Error Insight in editor gutter |
Select this option to show the error insight in the editor gutter. | ||||||||||
Inactive Code Opacity Percent |
This option allows to alpha blend and show a certain color opacity value of an inactive or disabled code. The default is 30. |
Code Insight tab
Tools > Options > User Interface > Editor > Language and click on Code Insight Options tab.
Use this page to configure how Code Insight works while editing code in the Code Editor.
Item | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Use editor font |
Use the same font as the Code Editor instead of the standard IDE font. | ||||||||
Code insight manager |
Displays a list of programming and markup languages ( | ||||||||
Code completion |
Displays a list of properties, methods, and events when you enter a class name followed by a period in the Code Editor. You can then select an item and press If this option is not checked, you can still invoke Code Completion by pressing
Note: For the Clang-enhanced compiler, this feature uses a Language Server Protocol server. It is asynchronous and non-blocking.
| ||||||||
Finish incomplete properties |
Determines whether class completion completes property declarations. |
||||||||
Parameter completion |
It is auto-invoked for methods after you code-complete that method, or pressing
Note: For the Clang-enhanced compiler, this feature uses a Language Server Protocol server. It is asynchronous and non-blocking.
| ||||||||
Tooltip expression evaluation |
Displays the current value of a variable when you position the cursor over it. This feature is available when program execution is paused during a debugging session. | ||||||||
Tooltip insight |
It happens when hovering the mouse over a symbol.
| ||||||||
Find declaration |
Invoke Find Declaration by pressing Note:
For more information, see Code Insight Reference. | ||||||||
Block completion |
Enables the editor to automatically insert a block-closing symbol when you begin a block and press
| ||||||||
Code template completion |
Automatically adds a code template when you type a token that starts a template and press
| ||||||||
Generate LSP Config |
Generates .delphi.json files. When enabling this option, the key project settings used by the LSP server are saved to a a file with the same name as your project and a .delphi.json extension. Use this file when using LSP with an external editor such as Visual Studio Code. | ||||||||
Delay |
Sets the duration of the pause before a Code Insight window displays. Select a value anywhere on a scale between None and High. Note:
|
Insight Options tab
Tools > Options > User Interface > Editor > Language and click on Insight Options tab.
Item | Description |
---|---|
Show symbols that contain filter |
Select this to list all symbols that contain the text you typed. |
List all symbols that start with the filter first |
Select this option to move symbols that begin with the filter text to the top of the list. If the option is unchecked, then symbols are sorted in alphabetical order. |
Select shortest matching symbol |
Select this option to select the shortest matching symbol. |
Filter text is underlined |
Select this option so the code completion dropdown underlines text that matches what you typed. |
LSP Behavior tab
Tools > Options > User Interface > Editor > Language and click on LSP Behavior tab.
Item | Description |
---|---|
Restart server each time a project is activated |
Indexes all files in a project and all files opened in the editor. Note: For all C++ projects, this option is on by default.
|
Index only files that are opened in the editor |
Indexes only the files you open, regardless of your project. |
Index all files in the project group |
Indexes all files in all the projects and files opened in the editor when the project group is loaded. |