IntelliJ 中的链接文件和文件夹

2022-01-20 00:00:00 directory ide intellij-idea eclipse

由于以前的 Eclipse 用户切换到 IntelliJ,我希望能够在开发时从 IDE 内部访问项目外部的文件夹.

As previous Eclipse user switched to IntelliJ I would like to be able to access folder external to my project from inside the IDE, while developing.

在 Eclipse 中,我使用的是 创建链接资源.

In Eclipse I was using the feature Creating linked resources.

我想知道 IntelliJ 中是否有任何功能可以帮助我以类似的方式访问外部文件和文件夹(例如,如果我想编辑位于我的项目之外的应用程序服务器的配置).

I wonder if there is any feature in IntelliJ that helps me to access external files and folder in a similar way (for instance, if I want to edit the configuration of my application server which is located outside my project).

推荐答案

是的,您可以通过在模块中添加新的内容根来实现.你可以从
项目结构 (alt+ctrl+shift+s) - 模块 - 我的模块" - + 添加内容根目录



现在您的项目中已添加文件夹的内容了.

Yes you can do it by adding an new content root in your module. You do that from
Project Structure (alt+ctrl+shift+s) - Modules - "My-Module" - + Add Content root



Now you have the contents of the added folder available in your project.

相关文章