Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure "Idea" to display src/main/java as one folder

Just started to move to Intellij Idea and stuck with some UI settings: Is possible to configure "Idea" to display src/main/java as one folder like in eclipse? It's really annoying click 3 times just get to your sources.

like image 632
maxx Avatar asked Jan 09 '13 01:01

maxx


People also ask

How do I get the src folder in IntelliJ?

From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. next to Source Folders or Test Source Folders. Specify the package prefix and click OK.

How do I change project structure view in IntelliJ?

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.

What is src folder in Java project?

Describes the Java™ source tree. When you create an API project, it is set up as a Java project with separate folders for source and class files. The source folder is named src .


1 Answers

You can configure 'Project Structure -> Modules' and in your module set folder 'java' under 'src/main/' to be indentidied by IDE as Source Folder. Than Idea will collapse 'src/main' as one item in project navigator.

like image 88
Vladyslav K Avatar answered Sep 27 '22 22:09

Vladyslav K