How to import a directory as a project and make each sub-directory a component?

Answered

How to import a directory as a project and make each sub-directory a component? The directory contains multiple sub-directories, each of which is about a topic/component and may have different (primary) programming language.

If just import the parent directory, it made it a project and the only component.

0
2 comments

Once you import the root directory, go to the Project Structure > Modules and create a new Module for each sub-directory you want to turn into a sub-module. That should do it.

0
Thanks Zartc, that's the right way, it's hard to determine the module type only by scanning file contents in the directory, only some Maven/Gradle modules can be detected in this way at present. If you face any problems, feel free to share the screenshot or something else.
0

Please sign in to leave a comment.