PyCharm 2020.1 Help

JavaScript

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

Item

Description

JavaScript Language Version

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

  • ECMAScript 5.1
  • ECMAScript 6+: This version adds support for the features introduced in ECMAScript 2015-2017 as well as some current proposals to the standard.

  • React JSX: This version adds support for the JSX syntax on top of ECMAScript 6

  • Flow: This version adds support for the Flow syntax.

Configure code completion settings

Click this link to open the Code Completion page and configure completion in the JavaScript context.

Flow package or executable

In this field, specify the path to the node_modules\flow-bin package or the Flow binary executable file. To use node_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 PyCharm 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 PyCharm. When the checkbox is cleared, references are resolved through PyCharm 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: 2 June 2020