IntelliJ 13 Ultimate: Missing (or not find yet) features
Hi,
i am a beginner using IntelliJ IDEA. Before i tried Netbeans and used Eclipse for years. But after upgrading to the last Eclipse version (4.x) multi modules cannot be used in a tree structure. So i tried IntelliJ because at least the Project-Window just shows the structure of a Maven multi-module project. But after playing around with this "new" IDE i have some problems. Perhaps i have not find the right settings yet or the following features are not implemented:
1. The only window using the multi-module structure is "Project". Neither "Maven Projects" nor switching to packages shows me the tree like structure based on the currently used Maven project.
2. Failures in web pages (.xhtml) will not show up in "Web" or "Project" window. Only editing one file shows syntax errors.
3. Help informations available for JSF libraries (e. g. Primefaces) will not show up for tags or attributes in a xhtml editor.
4. I have found no way to exclude entries from Project window (e. g. *.iml), so they will not show up in this window.
If someone could give me some hints for these problems, would help me a lot. Thanks in advance,
Daniel K.
Please sign in to leave a comment.
For the maven tool window, click the configuration gear icon and select "Group Modules". For the "Package View" of the project window, click the configuration gear icon and select "Show Modules"
To the best of my knowledge, only compile errors show in the Project Tool Window. You may want to open a feature request so that other warning/errors show: http://youtrack.jetbrains.com In the meantime, you can run inspections (Analyze > Inspect Code) to get a list of issues.
Can you be more specific. Code completion and Quick Documentation (Ctrl+Q) should work fine assuming things are configured correctly:
File > Settings > [IDE Settings] > File Types > "Ignore files and folders" text field at the very bottom of the settings dialog.
Thanks for your reply and the helpful explanations.
4.) Works like a charm.
3.) Ok, i have changed to eclipse key mapping, but switching back to Default, brings exactly the description i want to see - Thanks again :)
2.) Too bad, this would make it easier to find erroneous pages. Perhaps i will add a feature request for that.
1.) I already used these mentioned options. But in both views you just see a flat maven module design. For example i have a multi module project with the following structure:
root
->Module A
--> Submodule A-1
--> Submodule A-2
--> Submodule A-N
->Module B
--> Submodule B-1
--> Submodule B-2
--> Submodule A-N
-> ...
I hoped to have an option to have a tree view like described above. But instead i see the following:
Module A
Module B
root
Submodule A-1
Submodule A-2
Submodule A-N
Submodule B-1
Submodule B-2
Submodule A-N
Switching to "Group modules" show the following:
root
-> Module A
-> Module B
-> Submodule A-1
-> Submodule A-2
-> Submodule A-N
-> Submodule B-1
-> Submodule B-2
-> Submodule A-N
For my own projects i know the structure (mostly ;)). But especially for foreign projects it is hard to work without the structure, which could help to find the right places and understand the design of a Maven project.
But i will try to stick with intelliJ IDEA, because the installation was amazing. Only plugins failed (e. g. FileExplorer) but the IDE helps also in this case to deactivate the defective plugin so i could work without fixing the IDE in a cumbersome process. What i really miss is the eclipse project overview, showing me changes as well as errors directly in the project overview for different kind of files.
With best regards,
Daniel K.
You can get what the view you desired. By default, IDEA does not group modules in the "Project Structure" configuration. This is the setting (which we'll discuss in detail in a moment) that you want to look at. You didn't mention how your maven project was layed out on the file system. But if your maven structure is hierarchical on the file system...
by default the Project view of the Project tool window will show a hierarchical structure:
But in the package view (when grouped by modules) the modules will be flat:
There is a way to have these grouped, which will get to in a moment.
The Maven Projects tool window will show the hierarchy when the "Group Modules" option I mentioned in my first post is turned on:
This is true for all the cases we'll discuss. So we won't mention the maven tool window any longer.
Finally, there is also a flat structure in the "Project Structure" configuration (File > Project Structure or Ctrl+Alt+Shift+S)
In the "Project Structure" configuration, you can group modules. You can do this manually, or IDEA can do it for you when you initially import a Maven project. For the latter, when you do the import, simply select the "Create module groups for multi-module Maven Projects" option on the "Import Project From Maven" dialog:
when the project is imported, you will have module groups in the "Project Structure" configuration:
You can (if desired) rename the groups. This will now give you groups in both the Project tool window's "Project" and "Package" views:
Again, if you rename the module groups in the "Project Structure" dialog, those names will show in this view.
To manually create Module Groups:
Quick Documentation should still be available in the eclipse key mapping. To find its mapping, either do a search in the Keymaps settings dialog, or use the "Find Action" help option (Help > Find Action or by default Ctrl+Shift+A - look at it in the menu to see its mapping for the Eclipse tool mapping). In the "Find Action" dialog, search for "Quick Documentation" and it will show the shortcut. Nevertheless, I think sticking to the IDEA default mapping has benefits in the long run.
I hope that helps.
Yes you are right, my project is hierachical. But what you have written is exactly what i wanted. I imported the project from SVN in the first place. That i have to import it again as Maven Project was not clear to me, but it worked.
Thank you for your time, because your description how to do it was really detailed,
Daniel K.
PS: Keymapping is really long list, but i searched for the key combination and configured it to my needs :)
Before i forget it: can i mark this Thread as "answered" (similar to the functionaltiy on stackoverflow), to show that the given responses helped or fixed a problem?
Thanks in advance,
Daniel K.