Autocompletion
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.
Type definitions based on JSDoc is used for documenting code. It helps to see more additional details about parameters and their types.
Use standard shortcuts ⇧ + ⌥ + SPACE on IntelliJ Platform to see available documentation:
Visual Studio Code (VSCode)
Visual Studio Code usually has type support automatically integrated and there is no action needed.
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"
]
}
}