IntelliJ IDEA 2020.1 Help

Cordova

File | Settings | Languages and Frameworks | JavaScript | Cordova for Windows and Linux
IntelliJ IDEA | Preferences | Languages and Frameworks | JavaScript | Cordova for macOS
Ctrl+Alt+S the Settings button


Use this page to check the automatic configuration of PhoneGap, Cordova, an Ionic frameworks and update the configuration manually, when necessary.

If you followed the standard installation procedure fro the frameworks and the related packages, in most cases IntelliJ IDEA detects the paths to the packages and executable files.

Learn more from PhoneGap, Cordova, and Ionic.

Configure PhoneGap, Cordova, or Ionic in an empty project

  1. In the Cordova executable field, check the location of the executable file or specify the path to it if IntelliJ IDEA has not detected the executable automatically. This can be phonegap, phonegap.cmd, cordova , cordova.cmd, ionic, or ionic.cmd, depending on your operating system and the selected framework.

    IntelliJ IDEA detects the installed version and displays it in the Cordova version read-only field.

  2. In the Cordova working directory field, specify the folder where the application files to run are stored.

  3. By default, IntelliJ IDEA automatically treats the platforms or www directory as excluded and ignores it during indexing, parsing, and code completion, see Configuring folders in a content root.

    To preserve this default behavior, make sure the Automatically exclude working directories ('platforms', 'www' for ionic) checkbox is selected.

  4. In the Plugins area, configure a list of plugins to use in your development by installing required packages. The list shows all the PhoneGap, Cordova, or Ionic plugins that are currently installed on your computer, both at the global and at the project level.

    • To install a plugin, click Install. In the Available Packages dialog that opens, select the required package.

      To install the package globally, select the Options checkbox and type --global in the field. Click Install Package.

    • To remove a plugin, select it in the list and click the Uninstall button.

    • To upgrade a plugin to the latest available version, select the plugin in the list and click Upgrade.

    See Apache Cordova Plugins and PhoneGap Plugins for information about plugins and their use.

Last modified: 15 April 2020