-
Notifications
You must be signed in to change notification settings - Fork 58
Completion
Completion is triggered automatically when typing certain trigger characters. It can also be invoked manually with Ctrl+Space. Completion can be also be used to generate code.
What "completion mode" is triggered depends on the context:
The simplest and most commonly used form of completion is field / "dot" completion. It is invoked whenever a dot is typed after an identifier to show the available variables, properties and methods for it:
A special kind of field completion for code generation is Postfix Completion.
Toplevel completion gets its name from showing you the available "top level" identifiers, such as imported types or enum values. It usually needs to be triggered manually.
When invoking completion with Ctrl+Space in an object literal, the fields for the current structure type will be listed:
Completion is triggered automatically when typing the :
in a type hint, showing the available types:
After typing new
, completion pops up automatically and is filtered by types that have a constructor:
Similar to New Completion, the completion list after extends
/ implements
is filtered appropriately to only list types that can be extended / implemented:
When typing @
, the available compiler metadata is listed:
Setup
Features
- Tasks
- Debugging
- Commands
- Dependency Explorer
- Auto Indentation
- Completion
- Postfix Completion
- Snippets
- Code Generation
- Signature Help
- Hover Hints
- Go to Definition
- Go to Type Definition
- Go to Implementations
- Peek Definition
- Find All References
- Rename Symbol
- Document Symbols
- Workspace Symbols
- Outline
- Folding
- Diagnostics
- Code Actions
- Code Lens
- Formatting
- Extension API
- Inlay Hints
Noteworthy Releases