Linked Files and Folder in IntelliJ

前端 未结 2 1969
星月不相逢
星月不相逢 2020-12-31 01:44

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

相关标签:
2条回答
  • 2020-12-31 02:17

    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.

    0 讨论(0)
  • 2020-12-31 02:40

    I was searching for a way to get the asset folder link working in IntelliJ as it was working in Eclipse and I found following link in the wikis of libgdx itself.

    Linking the asset directories

    It describes basically three approaches:

    1. Just copy the asset folder into the desktop folder. (BAD)
    2. Use the asset folder in the android project as working directory for the desktop project through 'Run-Configurations'. (GOOD)
    3. Create a symbolic-link (GOOD)

    I tested the 2nd option and it's working fine for me.

    0 讨论(0)
提交回复
热议问题