The code intelligence system uses language scanners to scan source code of a particular language and store the symbols found in the source files in an internal database. This database of code symbols is used:
- for code completion to show the possible code completions
- for call tips to show the context of a function call
- for jumping to symbol definitions when you select “Go to Definition” from the context menu in the Editor pane
(Komodo IDE only)
A sidebar in the left pane that displays a hierarchical view of all code constructs (for example, import statements, classes, functions, arguments, and variables) in the selected file. In the Symbol Browser, symbols can be sorted by file order or alphabetically, and filtered. The current scope of a symbol can be located. To access the Symbol Browser, click View > Tabs & Sidebars > Symbol Browser. For more information, see Symbol Browser.
Use the Symbol Browser to:
- View program structure.
- Browse from a listed namespace, command, or variable definition and jump to the actual source code where it is declared.
- Locate all variables used within a file.
- View a symbol definition signature.
- Find all defined symbols matching a pattern.
You can configure the following settings for the Symbol Browser by clicking the cog icon next to the Filter Symbols text box:
- Locate current scope: Identifies the current scope of a symbol automatically if it is in another file.
- Show all symbols: Shows all symbols in the file, not just the high-level symbols, such as classes.
- Sort alphabetically: Sorts the symbols identified in the file in alphabetical order.
- Sort by file order: Sorts the symbols identified in the order they appear in the file.
- Use legacy parser: Select this option if you want to use the parser available in previous versions of Komodo.
The cog button opens the Settings menu with the following options:
The Filter Symbols text box limits the Symbol Browser display to matching symbols. Enter the desired symbol name, or partial name, in the text box. The filter supports regular expressions (Python syntax). If there is an error in the pattern, the text is highlighted and a tooltip describes the error.