# File and project-wide analysis

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/en-us/help/go/llms.txt).

GoLand analyzes your code in the file that is currently opened in the editor and highlights detected problems as you type.  It also automatically [checks your entire project
for errors](null).

Additionally, you can run an inspection or a group of inspections in the selected scope of files [manually](running-inspections.html#run-inspections-manually). In this case, you will get a comprehensive report of all detected problems.

## Current file

The IDE continuously checks your code and searches for problems. When GoLand analyzes your code, it uses the inspections defined in the currently selected [inspection profile](customizing-profiles.html). The widget in the top-right corner of the editor displays the number of problems of each [severity](configuring-inspection-severities.html) detected in the current file:

![Inspection widget](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ws_inspection-widget.png)

> **Tip:**
> The widget has a simplified view. To enable it, hover over the widget, click ![the More button](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.more.svg), and select Compact View.

Click the widget to open the list of problems in the File tab of the [Problems tool window](problems-tool-window.html). You can also access the Problems tool window by selecting `View | Tool Windows | Problems` or by pressing `Alt+6` (Windows), `⌘ 6` (macOS), `⌘ 6` (IntelliJ IDEA Classic (macOS)), `⌘ 6` (macOS System Shortcuts), `Alt+6` (XWin), `Alt+6` (GNOME), `Alt+6` (KDE), `Alt+6` (Emacs), `Alt+6` (Sublime Text), `⌘ 6` (Sublime Text (macOS)), `Ctrl+Shift+M` (VSCode), `⌘ ⇧ M` (VSCode (macOS)).

For each problem, you can see the suggested quick-fix by pressing `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `Ctrl+.` (VSCode), `⌘ .` (VSCode (macOS)) or by clicking ![Show Quick Fixes](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app-client.expui.codeInsight.intentionBulb.svg).   To jump to the corresponding line in the editor, press `F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (VSCode), `F4` (VSCode (macOS)) or double-click the problem in the tool window.

Click ![Open Editor Preview](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.previewVertically.svg) to be able to view and fix problems right in the tool window.

![Detected problems shown in the Problems tool window](https://resources.jetbrains.com.cn/help/img/idea/2026.3/go_problems_toolwindow.png)

The color stripe in the scrollbar also marks the detected code problems and helps you quickly access the corresponding lines without scrolling the file. Hover over a mark on the stripe to see the detected problem in a tooltip. Click a mark to jump to the corresponding line. Alternatively, you can use [the widget for inspections](running-inspections.html#widget-for-inspections).

![Results of instant analysis](https://resources.jetbrains.com.cn/help/img/idea/2026.3/go_using_inspections.png)

### Navigate to detected problems

You can jump from one highlighted problem to another within a file by clicking ![the Next Highlighted Error button](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.findAndShowNextMatches.svg) ![the Next Highlighted Error button](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.findAndShowPrevMatches.svg) in the widget or by pressing `F2` (Windows), `F2` (macOS), `F2` (IntelliJ IDEA Classic (macOS)), `⌃ Comma` (macOS System Shortcuts), `F2` (XWin), `F2` (GNOME), `F2` (KDE), `F2` (Emacs), `F2` (Sublime Text), `F2` (Sublime Text (macOS)), `Alt+F8` (VSCode), `⌥ F8` (VSCode (macOS)) or `Shift+F2` (Windows), `⇧ F2` (macOS), `⇧ F2` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ Comma` (macOS System Shortcuts), `Shift+F2` (XWin), `Shift+F2` (GNOME), `Shift+F2` (KDE), `Shift+F2` (Emacs), `Shift+F2` (Sublime Text), `Shift+F2` (Sublime Text (macOS)), `Alt+Shift+F8` (VSCode), `⇧ F8` (VSCode (macOS)) accordingly. By default, the IDE will navigate you to problems according to their [severity](configuring-inspection-severities.html): errors > warnings > weak warnings > server problems > typos.

You can configure GoLand to take you through the problems one by one regardless of their severity. Hover over the widget in top-right corner of the editor, click ![the More button](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.more.svg), select 'Next Error' Action (F2) Goes Through, and enable All Problems.

![Configuring navigation between highlighted lines](https://resources.jetbrains.com.cn/help/img/idea/2026.3/navigate-inspection-lines.png)

