NimChimpsky
NimChimpsky

Reputation: 47290

how to stop intellij incorrectly treating a normal directory as a package

enter image description here

See in image I don;t want the webapp directory treated as package. And I don;t want to exclude from indexing - the indexing is great.

Upvotes: 0

Views: 134

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401975

Don't configure the directory (and any of its parents) as Sources in the Project Structure, module settings.

IntelliJ IDEA interprets a directory as a package only for the the directories under the source roots.

Upvotes: 1

Related Questions