On this page you will find a short Getting Started Guide that will walk you step by step from creating a web application to debugging and testing it.
Creating a new application
Select from the main menu or click Create New Project on the Welcome screen. The Create New Project Dialog opens.
In the left-hand pane, choose Empty Project.
To open the application sources that are already on your machine
To check out the application sources from your version control
Click Check out from Version Control on the Welcome screen or select from the main menu.
Select your version control system from the list.
In the VCS-specific dialog that opens, type your credentials and the repository to check out the application sources from.
- ECMAScript 3
- 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.
Downloading npm dependencies
Make sure you have Node.js on your computer. If your application uses some tools, libraries, or frameworks, download the required packages.
To install a package in an empty project
npm install <package name>.
If you already have a package.json file in your project
Right-click the package.json file in the editor or in the Project tool window and choose Run 'npm install' from the context menu.
npm installin the Terminal Alt+F12.
Configuring code completion for project dependencies
Viewing parameter hints
Parameter hints show the names of parameters in methods and functions to make your code easier to read. By default, parameter hints are shown only for values that are literals or function expressions but not for named objects.
To configure parameter hints
In the Settings/Preferences dialog (Ctrl+Alt+S), go to . The Appearance page opens.
Click Configure next to the Show parameter name hint checkbox (the checkbox is selected by default).
In the Configure Parameter Name Hints dialog that opens, select the Show name for all arguments checkbox in the Options area.
To add ES6 import statements on code completion
In the Settings/Preferences dialog (Ctrl+Alt+S), go to . The Auto Import page opens.
PhpStorm can also generate import statements for symbols defined in the project’s dependencies. Auto-import works for symbols from packages that contain TypeScript definition files (like in moment or redux) or sources written as ES modules.
Configuring syntax highlighting
Select the color scheme, accept the highlighting settings inherited from defaults or customize them as described in Configuring Colors and Fonts.
- Do one of the following:
Choosefrom the main menu or press Alt+F2. Then select the desired browser from the list.
Hover your mouse pointer over the code to show the browser icons bar: Click the icon that indicates the desired browser.