View | Tool Windows | Inspection
- You can access the tool window this way only when it is already opened through .
- After you deactivate the tool window manually by clicking the Close button , the tool window is again available only through .
The Inspection tool window displays inspection results on separate tabs.
The left-hand pane of each tab shows a tree view of the inspections for which problems are found. The right-hand pane shows summary information for an item selected in the left-hand pane.
On this page:
|Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R||Click this button to run the inspection and show the results on the same tab.|
|Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+WControl Shift F4Shift Command F4Command W||Click this button to close the current tab or the tool window.|
|Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals||Expand all nodes|
|Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus||Collapse all nodes|
|Ctrl+Alt+DownShift+Alt+DownCtrl+Alt+DownCtrl+Alt+DownCtrl+Alt+DownCtrl+Alt+DownAlt+DownCtrl+Alt+DownAlt Command DownAlt Command DownAlt Command Down||Navigate to the next item.|
|Ctrl+Alt+UpShift+Alt+UpCtrl+Alt+UpCtrl+Alt+UpCtrl+Alt+UpCtrl+Alt+UpAlt+UpCtrl+Alt+UpAlt Command UpAlt Command UpAlt Command Up||Navigate to the previous item.|
|Turns the Autoscroll to source option on or off. When the option is on and you select an item, the corresponding source file opens in the editor and the appropriate fragment is highlighted in the file.|
|2.7+||Click this button to export the inspection results into XML or HTML format.|
|F1F1F1F1F1F1F1F1ContextHelpF1ContextHelp||Use this icon or shortcut to open the corresponding help page.|
|If this toggle is on, the problems are grouped into Errors and Warnings. Otherwise, the problems are grouped by inspections.|
|Turns grouping by directories on or off.|
|When this toggle is on, the resolved and excluded items are not shown.|
|If you run the inspections several times on the same tab, press this button to filter the differences.|
|If you run the inspections several times on the same tab, press this button to hide the items that did not change since the previous inspection.|
|Click this button to edit the current inspection settings.|
|Alt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Shift+Alt+J or Ctrl+Shift+MAlt EnterAlt EnterCommand 1||Click this button to resolve the problem for the selected inspection item by choosing one of the available quick fixes from the list.|
|Click this button to disable or suppress the run of the selected inspection.|
Context menu commands
|Jump to Source||F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3||Open the file that contains the selected problem in the editor and place the cursor at the beginning of the corresponding code fragment.|
|Find Usages||Alt+F7Shift+Alt+7Shift+Alt+7Alt+F7Alt+F7 or Shift+Alt+SShift+Alt+F7Alt+F7Ctrl+GAlt F7Alt F7Shift Command G||Search for usages of the selected file.|
|Exclude||DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command Backspace||Exclude the selected items from further examination. Excluded nodes are shown strikethrough. If the filter toggle is on, the excluded nodes are hidden.|
|Include||InsertInsertInsertInsertInsertInsertInsertInsertShift BackspaceInsertShift Backspace||Include previously excluded items in the list of results. All nested subelements are included too.|
|Alt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Shift+Alt+J or Ctrl+Shift+MAlt EnterAlt EnterCommand 1||Select one of the suggested solutions.|
|Edit Settings||Change the settings for the selected inspection or group of inspections in the Errors dialog.|
|Disable inspection||Disable alerts for the selected inspection in the active tab of results.
If the filter toggle
is on, the
nodes for disabled inspections are hidden.
See also, Disabling and Enabling Inspections.
|Run inspection on||Rerun the selected inspection and display the results on a new tab.|
|Suppress problem /
Suppress problem for class
|Suppress the inspection for the selected problem or the selected class.|
|Local history||Perform a local history-related action. See Using Local History.|
The inspection report is shown in the right-hand pane of the results tab when an inspection node is selected in the left-hand pane. The report includes the following:
- Name. The name of the class or the class member where the problem has been detected.
- Location. The hyperlink to the class.
- Problem synopsis. A brief description of the problem.
- Problem resolution. A list of possible solutions (if available). Clicking a hyperlink invokes the corresponding fix. If no hyperlinks are present, you have to fix the problem yourself.