Code Editor Context Menu
Go Up to Code Editor
Right-click the Code Editor window to display and select from the following context menu of commands:
Item | Description | Language | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Find Declaration |
Navigates to the location where a type or variable is defined. |
Delphi | |||||||||||||||||||||||||||||||||||
Go to Related |
Shows a popup menu with a variety of different navigation options depending on the selected item, type, method, or variable. See Go to Related. |
C++ | |||||||||||||||||||||||||||||||||||
Open Source/Header File |
Does either of the following:
|
C++ | |||||||||||||||||||||||||||||||||||
Open File at Cursor |
Searches for and attempts to open a source file whose name matches the text currently under the cursor. Then either:
The file is opened in a new Code Editor page. Unit scope names are now used to help locate the correct file. Every project has a set of default unit scopes that the IDE can use to search for units if the unqualified unit name is not found. For example, if you point to FMX.Controls.pas and select Open File at Cursor, the IDE searches for the unit-scoped name first (FMX.Controls.pas) and then looks for the unscoped unit name (Controls.pas). Then the IDE takes all the unit scopes defined for the project and prepends each unit scope to the unit name, until either the file is found or there are no more unit scopes: for example, Rtl.Controls.pas, Fmx.Controls.pas, and so on. |
Both | |||||||||||||||||||||||||||||||||||
Topic Search |
Invokes the help system and requests the help topic that matches the currently selected item in the Code Editor. |
Both | |||||||||||||||||||||||||||||||||||
Complete Class at Cursor |
Generates skeleton code for the class members that you declare. See Code Editor for details. |
Both | |||||||||||||||||||||||||||||||||||
Add To-Do Item... |
Opens the Add To-Do Item dialog box so that you can create a To-Do item and add it to the To-Do list. |
Both | |||||||||||||||||||||||||||||||||||
Cut |
Removes the current selection and stores it to the clipboard. Cut works with text when using the Code Editor and with components when using the Form Designer. |
Both | |||||||||||||||||||||||||||||||||||
Copy |
Copies the current selection to the clipboard. Copy works with text when using the Code Editor and with components when using the Form Designer. |
Both | |||||||||||||||||||||||||||||||||||
Paste |
Inserts the contents of the clipboard (previously captured using the Cut or Copy command). Paste works with text when using the Code Editor and with components when using the Form Designer. |
Both | |||||||||||||||||||||||||||||||||||
Toggle Bookmarks |
Sets a new bookmark or removes an existing one (using the bookmark number you select from the submenu). See Using Bookmarks. |
Both | |||||||||||||||||||||||||||||||||||
Goto Bookmarks |
Moves the Code Editor focus to the line marked with the bookmark whose number you select from the submenu. See Using Bookmarks. |
Both | |||||||||||||||||||||||||||||||||||
Clear Bookmarks |
Clears all bookmarks currently set. Only enabled when at least one bookmark is set. |
Both | |||||||||||||||||||||||||||||||||||
Debug |
|
Both | |||||||||||||||||||||||||||||||||||
Toggle Comment |
Toggles comment characters (//) at the beginning of the current line of code. This is an easy way to comment-out selected lines of code. |
Both | |||||||||||||||||||||||||||||||||||
Fold |
Collapses one or more blocks of code (functions, type declarations, preprocessor region directives, XML Doc comments, and so on). Use
For more information about code folding, see Using Code Folding. |
Both | |||||||||||||||||||||||||||||||||||
Unfold |
Expands one or more collapsed blocks of code (functions, type declarations, preprocessor region directives, XML DOC comments, and so forth).
See Using Code Folding. |
Both | |||||||||||||||||||||||||||||||||||
Refactor |
|
Both | |||||||||||||||||||||||||||||||||||
|
Delphi | ||||||||||||||||||||||||||||||||||||
|
C++ | ||||||||||||||||||||||||||||||||||||
Find |
|
Delphi | |||||||||||||||||||||||||||||||||||
|
C++ | ||||||||||||||||||||||||||||||||||||
Search for Usages... | Opens the Search for Usages dialog box to find usages of classes, methods, variables, and overriding methods, derived classes and implemented interfaces in Delphi source code projects. | Delphi | |||||||||||||||||||||||||||||||||||
Surround | Surrounds the highlighted element with the selected code template (logical code symbols or statements). Many of the elements in the Surround list are also code templates, listed in the Templates Window. | ||||||||||||||||||||||||||||||||||||
In the following descriptions, the ellipsis (...) represents the elements currently selected in the Code Editor for Delphi:
|
Delphi | ||||||||||||||||||||||||||||||||||||
In the following descriptions, the ellipsis (...) represents the elements currently selected in the Code Editor for C++:
|
C++ | ||||||||||||||||||||||||||||||||||||
Sync Prototypes | Synchronizes the interface and implementation copies of your procedure and function prototypes. See Synchronizing Prototypes for further details. | Both | |||||||||||||||||||||||||||||||||||
Format Source | Formats the Delphi or C/C++ source file being edited. To set formatting options, use the Formatter Options page of the Options dialog box (Tools > Options). The formatting options define indentation, spaces, line breaks, capitalization, and align parameters to be used for the code formatting. See Formatting Source Code. | Both | |||||||||||||||||||||||||||||||||||
Add to Repository | Opens the Add to Repository dialog box, which enables you to add forms and templates to the New Items dialog box in the IDE. | Both | |||||||||||||||||||||||||||||||||||
View Messages | Toggles the display of the Messages View. | Both | |||||||||||||||||||||||||||||||||||
Read Only | Toggles the Code Editor's read-only mode. When this option is enabled, keyboard input is ignored. | Both | |||||||||||||||||||||||||||||||||||
Editor Options | Opens the Editor Options window. | Both |
Topics
- Find References (C++)
- Go to Type Declaration (C++)
- Find Symbol (C++)
- Show Base Types (C++)
- Show Derived Types (C++)
- Show Type Hierarchy (C++)