(in IDEA 12.1.3) I notice that when creating a File > New Project > Java Module, then there is different behaviour if I type the module name in first, followed by the project name, as opposed to when I do the opposite.
In the first case the module file path in .idea/modules.xml becomes
<module fileurl="file://$PROJECT_DIR$/moduleFirst.iml" filepath="$PROJECT_DIR$/moduleFirst.iml" />
The latter case becomes
<module fileurl="file://$PROJECT_DIR$/ModuleLast/ModuleLast.iml" filepath="$PROJECT_DIR$/ModuleLast/ModuleLast.iml" />
Now the project structure of the last case (Project First, Module last) makes most sense (see screenshot), but it appears a bit unfortunate that the .idea file isn't immediately visible in IDEA's project browser (see screenshot), like it is in the first case where it's path gets set to the same as that of the module.
Is this a bug? Am I meant to manually add the .idea folder to the project's files?