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

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

问题描述

由于以前的 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.

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

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