JetBrains Fleet
 

Inspect and fix C# code

Last modified: 25 November 2024

In Smart Mode, each file that you open in the editor is analyzed on the fly with hundreds of code inspections:

  • Status indicator in the top-right corner displays the number of code issues detected in the file. You can hover over it to see how many issues of different severity levels are found.

  • All detected issues are underlined with different colors according to the severity level of the corresponding inspection. For example, red means error (the code will likely not compile), yellow means warning (a compiler warning or suboptimal code), grey means suggestion (an improvement suggestion that can be safely ignored).

  • Markers on the scrollbar show relative positions of issues within the file, which help navigate code issues in large files.

JetBrains Fleet: Code inspection in the editor

To see why a part of code is underlined as a code issue, hover over the highlighting:

JetBrains Fleet: Code issue description in C#

To go to the next/previous issue in the file, press Ctrl0E/CtrlShift0E.

For most of the detected issues, there are one or more quick-fixes. To see available fixes, press AltEnter, then select the desired fix and press Enter.

JetBrains Fleet: Apply quick fixes with Alt+Enter