This feature is supported in Ultimate edition only.
The following is only valid when Ruby Plugin is installed and enabled!
IntelliJ IDEA makes it possible to visualize gem dependencies, based on the Gemfile information. The gem dependency diagrams are not editable.
If Gemfile is missing, the commands are not available.
- Do one of the following:
- On the context menu of the Project tool window, or the editor, point to , and choose or .
- Press ⌥⇧⌘U or ⌥⇧⌘U⌥⇧⌘U or ⌥⇧⌘U⌥⇧⌘U or ⌥⇧⌘U^ ⇧ ⌥ U, ⌃⌥⇧U or ⌃⌥⇧U^ ⇧ ⌥ U, ⌃⌥⇧U or ⌃⌥⇧U, or ⌥⌘U or ⌥⌘U⌥⌘U or ⌥⌘U⌥⌘U or ⌥⌘U^ ⌥ U, ⌃⌥U or ⌃⌥U^ ⌥ U, ⌃⌥U or ⌃⌥U.
- From the pop-up menu, choose Gem Dependency Diagram:
- Select elements.
- Add or delete notes.
- Change diagram layout.
- Change diagram scale.
- Navigate to source code.
- Navigate through the gems using the Structure view (⌘F12 or ⌘F12⌘F12 or ⌘F12⌘O or ⌘O^ F12, ⌃F12 or ⌃F12^ F12, ⌃F12 or ⌃F12).
Keeping the ⌥ key pressed invokes the magnifier tool,
which will help you have a closer look at the most interesting or problematic areas of your Model dependency diagram.