What is the function of "out" and ".idea" folders in Intellij?

Can someone clearly explain what the "out" and ".idea" folders stand for in the project structure? While I'm not new to Java, I need some help to understand how all the components in a typical IDE work together. I previously used BlueJ, which was very easy to use, but it masked all background processes that I find it difficult to understand right now.

Edit: Sorry, I didn't check thoroughly for ".idea", but the "out" folder was not generically defined.

+5


source to share


3 answers


Read the official doc here: -.out: - .out intellij folder

I.idea: - .idea folder



In short, all project specific files are sent to the .idea folder and it will be recreated if you delete the project.

And the .out folder contains the output of your project when building / compiling, i.e. contains .class files.

+5


source


When you use a JetBrains product like Intellij Idea, all specific project settings are stored in the .idea directory. Here is a link from JetBrains documenting the .idea directory: Documentation.



As for the external folder, it contains all your compiled classes, when you run your program from the IDE, all your classes are compiled into the out directory.

+1


source


enter image description here

Let's take a look at the basic project settings.

  1. Here src folder contains all class files i.e. java files. In this example, this is main.java
  2. out folder is the project's output folder. This folder will be organized hierarchically similar to the src folder. This folder contains the compiled class file. In this example, this is main.class out_Reference
  3. Idea folder that stores project settings. idea_Reference

0


source







All Articles