Actions and keyboard
Actions
| Action | Where | What it does |
|---|---|---|
| Calculate Metrics... | Code menu | Asks for the scope and the profile and calculates |
| Metrics Profiles... | Calculation dialog | Opens the profiles dialog |
| Recalculate | Results toolbar | Calculates again and replaces the results |
| Recalculate and Compare | Results toolbar | Calculates again and compares with the results shown |
| Save Snapshot... | Results toolbar | Saves the results in a .met file |
| Compare with Snapshot... | Results toolbar | Compares the results with a .met file |
| Dismiss Comparison | Results toolbar | Ends the comparison |
| Export Results... | Results toolbar | Writes the results to a CSV or XML file |
| Edit Thresholds... | Results toolbar | Edits the thresholds of the metrics of the selected table |
| Follow Selection in Editor | Results toolbar | The editor follows the selected row |
| Show Only Rows That Exceed a Threshold | Results toolbar | Hides the rows without warnings or errors |
| Charts... | Menu of a metric column | Opens the charts of the metric |
| Explain This Metric | Menu of a metric column | Opens the help of the metric |
| Sort Ascending, Sort Descending | Menu of a column | Sort the table by the column |
| Worst First | Menu of a column | Goes back to the initial order of the table |
| Show in Table | Menu of a row of the Summary | Selects the element in the table of its category |
| Expand All, Collapse All | Menu of the Summary, toolbar of the metrics tree | Expand or collapse every group |
| Group by Aspect | Toolbar of the metrics tree | Groups the metrics by aspect or by category |
Calculate Metrics... has no keyboard shortcut of its own. You can give it one in Settings | Keymap, where it is listed by its name.
Results tables
| Key or gesture | What it does |
|---|---|
| Double-click a row | Opens the element in the editor |
| Enter, F4 | Open the selected rows in the editor |
| Click a header | Sorts by the column, and reverses the order on the next click |
| Right-click, or the context menu key | Opens the menu of the column of the selected cell |
| Typing | Searches the names of the elements |
| Drag a header, drag its edge | Moves the column, resizes it |
| Mouse over a header | Shows the short help of the metric |
| Mouse over a cell | Shows how the value compares with its thresholds and, in a comparison, how it changed |
F4 is the default shortcut of the IDE's action to jump to the source. If your keymap has another one, that is the one that works here.
Summary
| Key or gesture | What it does |
|---|---|
| Double-click a row, Enter, F4 | Opens the element in the editor |
| Click the arrow of a class | Expands or collapses its methods |
| Right | Expands the selected class |
| Left | Collapses the selected class, or goes from a method to its class |
| Click a header | Sorts by the column |
| Right-click, or the context menu key | Show in Table, Expand All, Collapse All |
| Typing | Searches the list |
| Tab | Leaves the list for the next control |
Profiles dialog
| Key or gesture | What it does |
|---|---|
| Click a checkbox | Enables or disables the metric, or the whole group |
| Double-click a metric | Enables or disables it |
| Space | Enables or disables the selected metrics |
| Typing in the tree | Jumps to a metric by its name |
| Typing in the field over the tree | Filters the tree |
Charts
| Key or gesture | What it does |
|---|---|
| Double-click a row of Concentration or Changes | Selects the element in the results table |
| Enter, F4 on a row | The same |
| Mouse over a bar, a line or a rectangle | Shows its figures |
| Click a rectangle of the Map | Marks it |
| Double-click a rectangle of the Map | Selects the element in the results table |
The Map does not take the keyboard focus.
Screen readers
The severity of a value is not only an icon. A cell with a warning or an error announces it after its value, a comparison cell announces its change, and the rows of the metrics tree announce whether they are checked. The Total and Average rows form a table of their own named Total and average.