Project folder location
Answered
Is it possible to change the location where the projects are stored? I want to give IntelliJ another try. Is it possible for me to specify Google Drive as the location where I want the projects stored? I assume that it is possible.
I have Netbeans projects. I want to import them into IntelliJ. I asked about this previously on this forum. I also watched a YouTube video. So, I think that I'll be able to import my Netbeans projects into IntelliJ.
I've spent hours learning about different Java-compatible languages. I've decided that I want to learn Kotlin.
Please sign in to leave a comment.
Google Drive is known to cause issues with saving projects since it does something about files permissions, otherwise you can create projects where you want.
By default IntelliJ IDEA meta information is stored in .idea directory and in .iml files inside the project root directory, but you can create a project in one directory and then add content roots from completely different locations so that metadata is stored outside of the directory with your code.
Be that as it may, is it possible to set a path in the IDE to save projects in Google Drive?
We still do not recommend to use network shares to store projects.
David Simpson
You can try, but it may cause problems with unexpected file changes by the external file synchronization service and in some cases cause project files corruption.
OK.
Are all of the files & folders for a specific project in one folder or are all the files scattered all over the place?
You don't recommend Google Drive. What about saving projects to a flash drive or external hard drive?
See https://intellij-support.jetbrains.com/hc/articles/206544839 for the project files location and sharing them.
Flash drive / external drive is fine if it's fast enough.
OK, I understand this part:
All the files under the .idea directory in the project root except the workspace.xml, usage.statistics.xml, and tasks.xml files and the shelf directory which store user-specific settings
Do I need to hunt for & exclude the workspace.xml, usage.statistics.xml, and tasks.xml files and the shelf directory? Are the workspace.xml, usage.statistics.xml, and tasks.xml files all located in one folder or are they in separate folders?
I guess that individual project files are under the .idea directory. Let's say that I create a tic-tac-toe project. The tic-tac-toe project folder is under the .idea folder, right?
But I don't understand this part:
All the .iml module files that can be located in different module directories (applies to IntelliJ IDEA)
Are the .iml files for a specific project scattered all over the place?
So, I'm confused!
Yes, .iml files will be located in the module roots. For Maven projects there is an option to store generated files externally (not in the project roots).
You can use the gitignore file from here: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore . It will help you to understand where which project files are located and choose what to exclude and what to share.