IntelliJ IDEA 文件夹种类介绍

IntelliJ IDEA 文件夹类型介绍

  • Source roots(or source folders; shown as /help/img/idea/2017.1/rootSource.gif)将目录标注为source roots。这会告诉IntelliJ IDEA,这个文件夹中存在项目编译时需要的源代码

  • Generated source roots(or generated source folders; shown as /help/img/idea/2017.1/rootGeneratedSourceIJ.png;   in certain views the [generated]  text marker is used)和source roots比较相似。不同之处在于,在执行Move类重构或使用use quick fix中的Create类时,Generated source roots不建议作为目标文件夹。

  • Test source roots(or test source folders; shown as /help/img/idea/2017.1/rootTest.gif). 和source roots比较相似但是其中的代码是为了测试而准备的。

  • Generated test source roots(or generated test source folders; shown as /help/img/idea/2017.1/rootGeneratedTestSourceIJ.png;in certain views the [generated] text marker is used)和Test source roots类似。不同之处与Source roots和Generated source roots的区别相同。               

  • Resource roots   (or resource folders;shown as /help/img/idea/2017.1/rootResourceIJ.png; available only in Java modules)其中包括了项目所使用的各种资源文件。例如图片、多种xml文件和属性文件。During the build process, all the contents of the resource folders are copied to the output folder as is.Similarly to sources, you can specify that your resources are generated. You can also specify which folder within the output folder your resources should be copied to.

  • Test resource roots(or test resource folders; shown as /help/img/idea/2017.1/rootTestResourceIJ.png;                available only in Java modules)测试时所需的资源文件。从某些方面来说,和resource 文件夹类似。

  • Excluded roots(shown as /help/img/idea/2017.1/rootExcluded.gif)被IntelliJ IDEA 几乎忽略的文件。Very limited coding assistance is provided for files in excluded folders.Classes contained in excluded folders don't appear in code completion suggestion lists,references to such classes are shown in the editor as unresolved.When searching, IntelliJ IDEA doesn't look in excluded folders, etc.

猜你喜欢

转载自www.cnblogs.com/liangbin-2019-03-30/p/11205916.html