Home > Code Analysis, Tool Windows > Code Issues tool window

Code Issues tool window

June 20th, 2011

The CodeRush Code Issues tool window shows a summary of code issues found inside the source code within an entire solution. It is intended to help you overview, analyze, navigate and fix issues such as errors, warnings, hints and dead code:

CodeRush Code Issues Main Window

The window contains two customizable views: the tree list view and the code preview, a toolbar and a status bar, by default. In the tree list view, you can see the list of issues found that are being populated live in real-time, without recompiling the code. If you double click a code issue in the tree list, the corresponding source code file will be opened, and the editor caret will be positioned right on the code with an issue, so you can apply a code fix for it.

The overall number of code issues found and files being checked is shown on the status bar at the bottom of the tool window.

In the code preview view, there is a syntax-highlighted code preview of the selected issue in the tree list. The tree list is fully customizable, and you can arrange items and their view, using the tool bar buttons on the top of the window:

CodeRush Code Issues Window Toolbar

The toolbar has the following buttons in order of their appearance:

Icon Button Name Description

CodeRush Code Issues Window Sort by Location

Sort by location Sorts the tree list items by an issues’ location. The location is a source code range (coordinates), highlighted as an issue inside a specific file. The issues on the top of a file (for example, Redundant Namespace Reference code issue) will more likely appear at the top of the list. The button is available only when the list is shown as a plain list without parenting nodes and issue types.

CodeRush Code Issues Window Sort by Severity

Sort by severity Sorts the tree list items by an issues’ severity, starting from hits and going to errors. The button is available only when the list is shown as a plain list without parenting nodes and issue types.
CodeRush Code Issues Window Show Code Issues from active file Show code issues from active solution Shows code issues found inside entire solution.
CodeRush Code Issues Window Show Code Issues from active file Show code issues from active project Shows code issues found inside currently active project.
CodeRush Code Issues Window Show Code Issues from active file Show code issues from active file Shows code issues found inside currently active file.
CodeRush Code Issues Window Show parenting project nodes Show parenting project nodes Organizes code issues by projects in the tree list.
CodeRush Code Issues Window Show parenting file nodes Show parenting file nodes Organizes code issues by files in the tree list.
CodeRush Code Issues Window Show Code Issue types Show code issue types Organizes code issues by their types in the tree list.
CodeRush Code Issues Filter Filter Allows you to filter the tree list using the Filter popup dialog. See below for more info on code issue filtering.
CodeRush Code Issues Increase Font Increase font Increases the size of the font used for the tree list view.
CodeRush Code Issues Window Decrease Font Decrease font Decreases the size of the font used for the tree list view.
CodeRush Code Issues Landscape Layout Landscape layout (code preview on right) Sets the landscape layout: tree list on the left and code preview on the right.
CodeRush Code Issues Portrait Layout Portrait layout (code preview below) Sets the portrait layout: tree list on the top and code preview on the bottom.
CodeRush Code Issues Reference Only References only (no code preview) Removes the code preview, so it is hidden.

All buttons have the appropriate captions, so it is easy to distinguish between them. The Filter button has an additional popup dialog that allows you to specify code issue filtering options for the tree list. Once you click it, the following popup dialog appears:

CodeRush Code Issues Filter Dialog

In the center of the dialog, there’s a list of all code issues available, sorted alphabetically. Each item of the list has a check box, which specifies whether a particular code issue should be shown in the main tree list view of the tool window (if checked) or hidden (if unchecked). The special “{Select All}” item allows you to select code issues from the filtered issues list.

Check boxes on the bottom of the Filter popup dialog allow you to check or uncheck a group of code issues by type (errors, warnings, hints or dead code).

In the Find text box on the top of the dialog, you can search for a specific issue by typing its name. The View buttons provide the capability to specify which types of issues are shown in the filtered list of code issues. The icon represents the code issue type.

A great video about the Code Issues tool window is available on the DevExpress TV Channel.

This post is a part of post series about CodeRush Code Issues technology. To learn more about code issues, please refer to the appropriate topics:

  1. Code Issues technology overview
  2. Code Issues types overview
  3. Code Issues visual presentation
  4. Code Issues fixes and suppression
  5. Code Issues navigation techniques
  6. Code Issues tool window (current post)
  7. Code Issues configuration and options
  8. Code Issues overall list
  9. Creating your own code issue
—–
Products: CodeRush Pro
Versions: 11.1 and up
VS IDEs: any
Updated: Jul/25/2011
ID: C103

Similar Posts:

  1. Ryan Jackson
    June 20th, 2011 at 12:21 | #1

    Thanks! This is a descriptive article.

    One thing I am wondering about: what is the arrow on the left of Code Issues window for?

  2. June 20th, 2011 at 23:19 | #2

    @Ryan This arrow shows the current code issue with details on the right pane.

  3. Ryan Jackson
    June 21st, 2011 at 06:25 | #3

    Oh ok. Most of the time I have that window closed. Thanks!