WebStorm
 
Get WebStorm
You are viewing the documentation for an earlier version of WebStorm.

Project settings

Last modified: 26 July 2022

In WebStorm, you can configure settings for specific projects or globally, at the IDE level, see Configuring the IDE for details.

The project level settings are applied to the current project only. These settings are stored as xml files in the .idea directory of your project folder:

  • The <project name>.iml file describes the project structure.

  • The workspace.xml file contains your workspace preferences including Run/debug configurations.

  • Each xml file is responsible for its own set of settings, that can be recognized by its name: projectCodeStyle.xml, encodings.xml, vcs.xml and so on.

    Thus, for example, adding a new run/debug configuration and changing encoding will affect two different xml files. This helps avoid merge conflicts when the project settings are stored in a version control system and modified by the different team members.

For example, project settings include VCS settings, code style settings, the list of language injections, and so on. You can add these settings to your VCS along with other project files.

To configure project settings, select WebStorm | Preferences on macOS or File | Settings on Windows and Linux from the main menu. Alternatively, you can press Ctrl+Alt+S to show the IDE settings.

In the Settings/Preferences dialog, project settings that apply only to the current project are marked with the Project settings icon. Other settings are global and apply to all existing projects.

Project abd global settings marked in the Settings/Preferences dialog