

If you have no application yet, you can generate a PhpStorm project with PhoneGap or Cordova-specific structure from a boilerplate template. Learn more from the Cordova official website.Ĭreating a new PhoneGap or Cordova application Npm install -g more from the PhoneGap official website. In the embedded Terminal ( Alt+F12), type one of the following commands: Open the embedded Terminal ( Alt+F12) and type:

To emulate the iOS platform, install the ios-sim and ios-deploy command-line tools globally. Learn more from the Cordova official website. Make sure you have Node.js on your computer.ĭownload and install an emulator tool depending on the target platform and the operating system you use. Install and enable the Cordova plugin on the Settings/Preferences | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository. And if it's not in a plug-in, then you can handle it with the File Watchers.PhoneGap and Apache Cordova are frameworks for developing mobile application with single HTML, CSS, and JavaScript/TypeScript code base and targeting various mobile platforms, including Android. Most external tools/tasks can be handled with WebStorm. It's also recommended to more explicitly represent your workflow within WebStorm itself. It should be noted though that this is easily remedied by going to File/Settings/System Settings and checking the "Synchronize Files on frame or editor tab activation" option. You usually remember to do that anyway after you've been trying to track down a bug on a line of JavaScript that Webstorm says doesn't exist for the last two hours. There's a feature in the context-menu for manually synchronising directories with their real filesystem equivalent, but this shouldn't be necessary and is annoying to do. If you have an external tool acting on your project (such as a gulp task or a third-party Git client), what you see in the file browser or in open tabs becomes out-of-date. The Java wrapper around the filesystem doesn't actively watch for file changes (by, for example, using the fsevents api on OS X), and as a result can become easily desynchronised from the actual filesystem.
