Content roots 您所在的位置:网站首页 idea的src Content roots

Content roots

2024-07-11 14:12| 来源: 网络整理| 查看: 265

Exclude files and folders by name patterns

In some cases, excluding files or folders one by one is not convenient. For example, this may be inconvenient if your source code files and files that are generated automatically (by a compiler, for instance) are placed in the same directories, and you want to exclude the generated files only. In this case, you can configure one or several name patterns for a specific content root.

If a folder or a filename located inside the selected content root matches one of the patterns, it will be marked as excluded. Objects outside the selected content root won't be affected.

All files within excluded folders will be excluded as well.

In the main menu, go to File | Project Structure or press Ctrl+Alt+Shift+S

Click Modules under the Project Settings section, and then select a module.

If there are several content roots in this module, select the one that you want to exclude files or folders from.

In the Exclude files field located at the bottom of the dialog, enter a pattern. For example, enter *.aj*_test.go to exclude AspectJ files.

You can configure multiple patterns and separate them with the semicolon symbol (;).

Marking folders as excluded doesn't affect deployment. For more information about excluding files from deployment, refer to Exclude files and folders from uploading and downloading.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有