Is it possible to rename the .idea folder that's automatically created by IntelliJ or move it to a different location?
Renaming the .idea directory is not possible; IntelliJ IDEA always reads project files from the directory with that exact name, and it can't be changed.
Moving is sort of possible. The locations and content roots of modules in IntelliJ IDEA are completely independent from the location of the project itself. Because of that, you can create a project in a directory that doesn't contain any code, and set up modules with content roots pointing to the directories where the code is located.
Related
I have observed the following different files in my intellij java project -
.idea folder
.out folder
.iml file
.src folder
Out of these files I'm thinking of adding .idea folder, .out folder, .iml file to .gitignore? Am I right? Or do these folders and files hold some significance which needs tracked by git?
Please see how to handle files in .idea in terms of Git:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
The .out folder can be added to .gitignore, since it is created once the project is built (when you press Run in IntelliJ).
The .iml file and the .idea folder stores information about your project. Do NOT add this to .gitignore, as it is needed when others clone your project and build it themselves.
Source/s:
https://stackoverflow.com/a/44362056/14368392
https://rider-support.jetbrains.com/hc/en-us/articles/207097529-What-is-the-idea-folder-
I want to be able to open a directory with intellij without creating a project.
how to do it?
every time I open a folder, a project is automatically created with an .idea folder
When you use the Intellij IDE to open a directory,
It assumes that you are going to open a project (as it is the main reason to use IDEs). By default all of jetbrains's IDEs put the project specific settings for project in the .idea folder.
It is also safe to delete it if you are just opened a directory. There would be no problem in deleting this.
You can also use Terminal tab to change or open a directory (Alt+F12)
and use terminal commands to traverse between directories without creating any .idea folder.
I simply wish to change the name of a folder that lies in my root project folder.
I have changed the name of a project (say from Proj1 to Proj2).
I now have a folder on my desktop that reads Proj2. Inside is Proj2.xcodeproj and a folder called Proj1 with all of my source files and resources.
I want to change that folder to be consistent and read Proj1, however if I change it every file in my xCode proj becomes red.
Is there a technique to change this folder within xCode such that I can rename the folder and keep all my files intact with the appropriate structure (such as what groups the files are in)?
It's annoying, indeed.
However, there's no way to keep files on the hard drive (SSD, ..) and group names and the project structure in Xcode in sync automatically.
You can re-assign the locations of the files in your red folders manually to fix it.
Wish Xcode would offer a feature like this since we've switched to Xcode from MW CodeWarrior, but..
After you rename the folder, open the project in Xcode and select this folder. You can choose the renamed folder in the File Inspector Pane.
PhpStorm (and other IntelliJ IDEs) create a .idea project folder which stores settings in XML format. JetBrains recommends version-controlling these files so that they can be shared amongst the team.
My team tried this in the past but ran into trouble because we're constantly switching between branches which really messes with our settings/IDE.
Is there a way, in Mercurial, to version these files independently of our main project so that when we switch branches the .idea files are left as-is?
Yes, you can do so. Add the .idea directory to .hgignore, then create a separate Mercurial repository in the .idea directory. Under Settings | Version Control, make sure that you have both your project directory and the .idea directory as VCS roots, with Mercurial selected as the VCS.
I have some problems with IntelliJ Idea not copying SQL resource files into target directory, so I have to copy them there manualy.
I have SQL reosurce pattern in project's compiler settings.
I have standart structure maven project - with /etc/ folder holding property files which gets copied without problem. /etc/ folder holds /sql/ folder which i need to be copied as well, but it gets not copied at all. /etc/ folder is set as source folder.
My folder structure:
-etc
-conf
-sql
-src
-main
-test
This should work fine, but could be a bug specific to your configuration. Could you please submit an issue with a sample project and pom.xml?