IntelliJ中的链接文件和文件夹 [英] Linked Files and Folder in IntelliJ

查看:174
本文介绍了IntelliJ中的链接文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在Eclipse中,我曾经在IDE中从IDE内部访问我的项目外部的文件夹。使用功能创建链接资源



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

解决方案

是的,您可以通过在模块中添加新的内容根。
您可以从

项目结构 alt + ctrl + shift >




现在您有项目中可用的添加文件夹的内容。


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.

In Eclipse I was using the feature Creating linked resources.

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).

解决方案

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.

这篇关于IntelliJ中的链接文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆