Reputation: 59
How do i remove folder marked as library root in Intellij? Accidently marked as library root.
Upvotes: 4
Views: 5848
Reputation: 493
Click on the project, then File > Project Structure.
Go to the Dependencies tab, then find the entry that is adding such folder as a library root and remove that entry and click OK.
Upvotes: 0
Reputation: 184
You have an icon in the top right of your intelliJ window, right next to the maginifying glass and click on it. It's the icon that looks like a pile of papers in the screenshot I took below.
In the next window, click on Modules in the left sidebar and in the right part of the window, click on the name of your project.
In my case, it's the name of my Spring Artefact project.
Now at the right, you have the context of your intelliJ project.
You can now select the folder you want to add or remove and click on the desired markup.
Hope it helps !
Upvotes: 3