# Autocompletion

## IntelliJ[​](#intellij "Direct link to IntelliJ")

Autocompletion works out of the box in IDEA and WebStorm.

If you have been writing program code for a while, you probably like autocompletion. Autocomplete is available out of the box in many code editors.

![Autocompletion](/assets/images/0-4587a8e32bf6e92c57be8bb5647750e1.png)

Type definitions based on [JSDoc](http://usejsdoc.org/) is used for documenting code. It helps to see more additional details about parameters and their types.

![Autocompletion](/assets/images/1-dcfd0160c6fddbf751926e0cd8065525.png)

Use standard shortcuts `⇧ + ⌥ + SPACE` on IntelliJ Platform to see available documentation:

![Autocompletion](/assets/images/2-b565f727863ad47479badfa1b7264c72.png)

## Visual Studio Code (VSCode)[​](#visual-studio-code-vscode "Direct link to Visual Studio Code (VSCode)")

Visual Studio Code usually has type support automatically integrated and there is no action needed.

![Autocompletion](/assets/images/14-e1c7f7d906a37ff538be69b889461592.png)

If you use vanilla JavaScript and want to have proper type support you have to create a `jsconfig.json` in your project root and refer to used wdio packages, e.g.:

jsconfig.json

```
{
    "compilerOptions": {
        "types": [
            "node",
            "@wdio/globals/types",
            "@wdio/mocha-framework"
        ]
    }
}
```
