IDE Window: Editor Options Completion Hints: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: IDE Window: Editor Options Completion Hints
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## Navigation | |
| 2 | + | ||
| 3 | + | - [[Main menu|Main Menu]] - Overview of all the main menu menu items for the IDE. | |
| 4 | + | ||
| 5 | + | - [[IDE Window: IDE Options Dialog|IDE Options]] - Overview of all the options for the IDE. | |
| 6 | + | ||
| 7 | + | - [[IDE Window: Editor Options|Editor Options]] - Overview of all the options for the IDE source code editor. | |
| 8 | + | ||
| 9 | + | ## Completion and Hints Dialog | |
| 10 | + | ||
| 11 | + | You can open the **Completion and Hints** dialog in your IDE via: | |
| 12 | + | ||
| 13 | + | - The menu: **Tools** \> **Options** \> **Editor - Completion and Hints** | |
| 14 | + | ||
| 15 | + | - From the source editor window pop-up (right-click) menu: **Editor** \> **Options** \> **Editor - Completion and Hints** | |
| 16 | + | ||
| 17 | + | ## Auto remove empty methods | |
| 18 | + | ||
| 19 | + | Published methods without code are automatically removed on file save. For example, when you double click on a form the IDE creates the published method *FormCreate*. When this is option is enabled and the method is still empty the IDE will remove it automatically when you save the form. | |
| 20 | + | ||
| 21 | + | ## Add close statement for Pascal blocks | |
| 22 | + | ||
| 23 | + | Automatically add a close statement to complete a block of Pascal code. For example, when you type *begin* and press return the IDE will automatically add the *end;*. | |
| 24 | + | ||
| 25 | + | ## Auto Display Function Prototypes | |
| 26 | + | ||
| 27 | + | Show a hint with the parameters that the current procedure/function takes. This will activate, if you press `(` (left bracket) after the name of a function. It also activates, if you enter a `,` (comma) with the cursor inside the parentheses of a function call. | |
| 28 | + | ||
| 29 | + | This can also be activated by pressing `Shift`+`Ctrl`+`Space`. Using the key combo works independently of the setting being enabled. | |
| 30 | + | ||
| 31 | + | ## Show Declaration Hints | |
| 32 | + | ||
| 33 | + | When you hover the mouse over an identifier and wait a moment the IDE will show a hint. This provides details on where and how the identifier was declared/defined. | |
| 34 | + | ||
| 35 | + | If the package *TurboPowerIProDsgn* is installed the mouse can move into the hint bubble and the location of the declaration acts as a link. | |
| 36 | + | ||
| 37 | + | ## Show Value Hints when debugging | |
| 38 | + | ||
| 39 | + | When you hover the mouse over an identifier like for "Declaration Hints", but while debugging, then the IDE will evaluate the Identifier as a watch and display the current value. | |
| 40 | + | ||
| 41 | + | ### Automatic typecasts for objects | |
| 42 | + | ||
| 43 | + | If the identifier evaluated is an object (i.e. an instance of a class), then the IDE will typecast it to its actual class, showing more information. | |
| 44 | + | ||
| 45 | + | That is by default "Sender: TObject" evaluates as TObject and only shows TObject fields. But with this option, it will determine the actual class (e.g. maybe a TButton) and show all the info for that class | |
| 46 | + | ||
| 47 | + | ## Delay for completion box | |
| 48 | + | ||
| 49 | + | How long in seconds before the IDE opens the identifier completion dropdown. | |
| 50 | + | ||
| 51 | + | The IDE only automatically opens the drop down if you. for example. type a `.` (full stop) after the name of a record or object. | |
| 52 | + | ||
| 53 | + | ## Delay for hints | |
| 54 | + | ||
| 55 | + | How long in seconds that you have to hover over an identifier before the IDE triggers "Declaration Hints" or "Value Hints when debugging" | |
| 56 | + | ||
| 57 | + | ## Delay for long line hints in completion box | |
| 58 | + | ||
| 59 | + | In the completion drop box some lines may not fully fit and be cut off. When you hover over such a line, or select it with `up` or `down`, then a hint will show the full line. | |
| 60 | + | ||
| 61 | + | ## Show long line hints | |
| 62 | + | ||
| 63 | + | How to position the "long line hints in completion box" hint. | |
| 64 | + | ||
| 65 | + | --- | |
| 66 | + | *From the Free Pascal wiki, page "IDE Window: Editor Options Completion Hints", as it stood on 2021-01-31 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
