Intellij IDEA. Adding files from one folder to the project

Can I add some files from a directory to an IDEA project?
I don’t want to add the whole directory because it is huge and this will slow down the application.
And 2nd - can I say IDEA so as not to add all the subdirectories from a folder, but only the files that it contains?

+3
source share
2 answers

I find out that one good option is to right-click folders in the IDE and select the tje option. Mark the directory as → Excluded. He disappears from the tree.

+1
source

If there are files or folders that you do not want to be part of your project, my advice is to not include them in your IntelliJ project in the first place.

, , ; " ".

, , , . ? ? .

, , , JAR, .

. IntelliJ . , . IntelliJ , .

0

All Articles