Improve this doc

Autocompletion

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. However if autocompletion is required for packages that are not installed in the usual locations or are excluded from indexing for some reasons, these too could be added via configuration changes.

Autocompletion

JSDoc is used for documenting code. It helps to see more additional details about parameters and their types.

Autocompletion

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

Autocompletion

So, let’s start to consider an example of adding autocompletion to code editors on the IntelliJ Platform like WebStorm.

Node.js Core modules as External library

Open Settings -> Preferences -> Languages & Frameworks -> JavaScript -> Libraries

Autocompletion

Add new library

Autocompletion

Add directory with WebdriverIO commands

Autocompletion Autocompletion Autocompletion

Enter documentation URL

Autocompletion Autocompletion Autocompletion

Using TypeScript community stubs (TypeScript definition files)

WebStorm provides one more workaround for adding coding assistance. It allows you to download DefinitelyTyped stubs.

Autocompletion Autocompletion