

# Filtering code issues
<a name="filter-code-issues"></a>

**Note**  
You can only filter code issues in JetBrains IDEs and Visual Studio Code.

When you filter code issues, only issues that meet the selected criteria are shown in the Code Issues panel. You can filter the issues based on their severity so you only see issues with the selected severity in the panel.

You can also control how code issues are organized in the Code Issues panel. You can group issues based on severity or based on their file location. 

To filter code issues:

------
#### [ JetBrains IDEs ]

1. From the **Amazon Q Code Issues** tab, choose the filter icon. 

1. A pop-up menu with Severity levels opens.

   The following image shows the Severity menu in the Code Issues tab in IntelliJ IDEA.  
![\[The severity filter menu in IntelliJ IDEA.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/jb-filter-issues.png)

1. Select or deselect the the severity levels you want to filter for, and then choose **OK**. Only the issues with the severity you selected will appear in the **Amazon Q Code Issues** panel. 

------
#### [ Visual Studio Code ]

1. From the **Code Issues** panel, choose the filter icon. 

   The following image shows the filter icon in the Code Issues tab in Visual Studio Code.  
![\[The filter icon in the Code Issues tab in Visual Studio Code.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/filter-issues-vsc.png)

1. The **Filter Issues** menu opens. 

   Select or deselect the boxes next to the severity levels you want to filter for, and then choose **OK**. Only the issues with the severity you selected will appear in the **Code Issues** panel. 

------

To group code issues:

------
#### [ JetBrains IDEs ]

1. From the **Amazon Q Code Issues** panel, choose the grouping icon. 

1. A **Group By** pop-up menu opens.

1. Select **Severity** to group issues in the Code Issues panel based on their severity. Select **Location** to group issues based on which code file they are located in.

------
#### [ Visual Studio Code ]

1. From the **Code Issues** panel, choose the grouping icon. 

   The following image shows the grouping icon in the Code Issues tab in Visual Studio Code.  
![\[The grouping icon in the Code Issues tab in Visual Studio Code.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/group-issues-vsc.png)

1. The **Group Issues** menu opens. 

1. Select **Severity** to group issues in the Code Issues panel based on their severity. Select **Location** to group issues based on which code file they are located in.

------