Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linked Files and Folder in IntelliJ

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

like image 525
Luigi R. Viggiano Avatar asked Apr 14 '14 11:04

Luigi R. Viggiano


People also ask

How do I link to a file in IntelliJ?

From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. to the right of the necessary folder (folder path). Specify the path relative to the output folder root, and click OK.

What are .IML files in IntelliJ?

A module file (the . iml file) is used for keeping module configuration. Modules allow you to combine several technologies and frameworks in one application. In IntelliJ IDEA, you can create several modules for a project and each of them can be responsible for its own framework.

How do I create a folder path in IntelliJ?

Go to the Project Structure, click on Modules, and click on your Module. Choose the "Dependencies" tab. Click the "+" button on the right-hand side and select "Jars or directories..." Add the directory(ies) you want (note you can multi-select) and click OK.


1 Answers

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

enter image description here

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

like image 89
zpontikas Avatar answered Oct 19 '22 02:10

zpontikas