WebStorm 2017.1 Help

Configuring Content Roots

On this page:

Introduction

Any project contains at least one content root created together with the project.

You can create additional content roots as well as remove the unnecessary ones.

Creating a content root

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or WebStorm | Preferences for macOS, and click Directories under Project:<project name>.
  2. On the Directories page, click the Add Content Root button /help/img/idea/2017.1/addRoot.png.
  3. In the dialog that opens, locate the desired directory and click OK.

Removing a content root

  • Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or WebStorm | Preferences for macOS, and click Directories under Project:<project name>.
  • On the Directories page, select the content root to be deleted.
  • Click the Remove button /help/img/idea/2017.1/web_ide_remove_content_root.png.
    /help/img/idea/2017.1/ws_deleteContentRoot.png
  • Confirm deletion.

See Also

Reference:

Concepts:

Last modified: 17 July 2017