WebStorm 2019.1 Help

JavaScript

File | Settings | Languages and Frameworks | JavaScript for Windows and Linux
WebStorm | Preferences | Languages and Frameworks | JavaScript for macOS
Ctrl+Alt+S the Settings/Preferences icon


Item

Description

JavaScript Language Version

From this drop-down list, choose the JavaScript language version that represents the set of the language features to use in your project. The available options are:

Only type-based completion

  • When this checkbox is cleared, the completion list contains multiple variants in complicated cases.

  • When the checkbox is selected, the completion list strongly depends on the WebStorm type inference. This makes completion more precise but in case of poor inference the list may be empty.

By default, the checkbox is cleared.

Suggest variable names

When this checkbox is selected, WebStorm suggests names for new variables during their declaration. These suggestions are based on the names of classes, types, and interfaces that are defined in your project, in the libraries you are using, and in standard APIs.

Expand method bodies in completion for overrides

When you want to override a method from the parent class or interface and select this method from the list of completion suggestions, WebStorm automatically adds parameters, generates a super() call, and adds the type information, if possible.

By default, the checkbox is selected. Clear it to suppress automatic generation of method bodies for overrides during completion.

Flow package or executable

In this field, specify the path to the node_modules\flow-bin node_modules/flow-bin package or the Flow binary executable file. To use node_modules\.bin\flownode_modules/ .bin/flow make sure the path to Node.js is added to the PATH environment variable.

The field is available only when Flow is chosen from the JavaScript Language Version list.

Use Flow server for:

In this area, specify the basis for coding assistance by selecting or clearing the following checkboxes:
  • Type checking: When this checkbox is selected, syntax and error highlighting is provided based on the data received from the Flow server. When the checkbox is cleared, only the basic internal WebStorm highlighting is available.

  • Navigation, code completion, and type hinting: When this checkbox is selected, suggestion lists for reference resolution and code completiong contain both suggestions retrieved from integration with Flow and suggestions calculated by WebStorm. When the checkbox is cleared, references are resolved through WebStorm calculation only.

The checkboxes are available only when the path to the Flow executable file is specified.

Save all modified files automatically

Keep this checkbox selected to ensure that Flow is applied continuously because Flow checks the current files only after all the other modified files are saved.

Last modified: 16 May 2019

See Also

Language and Framework-Specific Guidelines: