Command completion
Command completion helps you write and transform code by suggesting context-aware IDE actions in the editor. It reduces the need to memorize shortcuts or navigate menus, allowing you to focus on the code and perform common tasks more easily.
Unlike the basic code completion, which suggests identifiers or keywords, command completion focuses on completing ideas. It prompts you to modify your code by applying common actions. The list of suggestions depends on the context and may include various intention actions and quick-fixes, import optimization, code reformatting, element creation or deletion, and more.
Toggle command completion on and off
Press Ctrl+Alt+S to open settings and then select .
Use the Enable command completion checkbox to enable or disable the feature.
Invoke command completion
Start typing your code. Whenever you want to access the list of commands, type two dots (
..).Type one dot (
.) to see command completion options together with the regular completion.
To search through the list of command suggestions, type the option you are looking for. Press Ctrl+Q to see the preview of the change before applying it.
