What is the function of the “out” and “.idea” folder in Intellij?

后端 未结 3 1258
醉话见心
醉话见心 2021-01-17 11:51

Can someone clearly explain what is \"out\" and \".idea\" folders in the project structure indicate? Though I\'m not a beginner in Java, I need help understanding how all th

相关标签:
3条回答
  • 2021-01-17 12:25

    Lets consider the basic project setup.

    1. Here src folder contains all the class files i.e java files.In this example its main.java
    2. out folder is the project output folder.This folder will be organised hierarchically, which is similar to the src folder.This folder contains the compiled class file.In this example it is main.class out_Reference
    3. idea directory that keeps project settings.idea_Reference

     

    0 讨论(0)
  • 2021-01-17 12:36

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

    And .idea :- .idea folder

    In Short all the project specific files goes to .idea folder and it will be recreate if you delete the project.

    And .out folder contains the output of your project when you build/compile it ie contains .class files.

    0 讨论(0)
  • 2021-01-17 12:37

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

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

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