WebStorm
 
Get WebStorm
You are viewing the documentation for an earlier version of WebStorm.

Code completion

Last modified: 21 July 2022

Configure: Settings/Preferences | Editor | General | Code Completion

For automatic completion enable the Show suggestions as you type option

Basic completion: Ctrl+Space

Code completion is one of the essential features of the WebStorm editor. To show you completion suggestions, WebStorm goes through the project files with the source code and adds classes, methods, functions, and variables defined in them to a special internal index. Additional information from JSDoc comments, TypeScript type definitions, and so on can also significantly improve completion.

Completion also works for symbols from third-party code. In most cases all you need is to add the required files to your project, see Configuring JavaScript Libraries for details.

This section covers various techniques of context-aware code completion that allow you to speed up your coding process.

https://resources.jetbrains.com/help/img/idea/2022.2/ws_react_classname.png
Gif