


Jetbrains phpstorm documentation code#
You can navigate to the underlying source code by selecting a diagram element and pressing F4). You can view members of the class, add new, delete the existing ones, see implementations, check parent classes, perform basic refactoring, add notes, and so on. When working with diagrams, use the context menu in the diagram editor to perform different tasks. To save the diagram as a file, right-click the diagram editor and from the context menu, select Export Diagram | Export to File and then the file extension in which you want to save the diagram. The protected methods are displayed with modifier icons next to them. PhpStorm displays members with visibility not less than protected, such as public, package local, and protected ones. For example, to view protected methods, click on the diagram toolbar and select protected from the list. The lists are displayed based on the selected visibility level, which you can change.

To see the list of methods, fields, and other code elements, select the appropriate icon on the diagram toolbar located on top of the diagram editor. Similarly, if you collapse a class, all elements in the containing folder (but not the child folders) will be collapsed. Note that expanding/collapsing nodes works on the class containing folder level: expanding a folder will display only its content, but not the content of its child folders. Analyze class diagramĪfter you have generated a diagram, press E to expand the nodes and see classes and their connections. To view changes in revisions as a UML Class diagram, in the History tab of the Version Control tool window, select the desired revision and select Show Diff as UML from the context menu or press Command Shift D. You can double-click a node to view changes in a Differences viewer. You can use the UML Class diagram to evaluate how your local code changes affect the model.įrom the context menu of the code editor, the Project tool window, or the Local Changes view, select Show Local Changes as UML, or press Command Alt Shift D.
