Code Inspection in F#
JetBrains Rider's code analysis in F# is provided by the F# Compiler Service. Nevertheless, the key code analysis features supported in C# and VB.NET (except for quick-fixes) are also available in F#. For more information about these features, refer to the Code Analysis section where you'll also find useful keyboard shortcuts.
Enable the F# Support plugin
This functionality relies on the F# Support plugin, which is bundled and enabled in JetBrains Rider by default. If the relevant features are not available, make sure that you did not disable the plugin.
Press Ctrl+Alt+S to open settings and then select
.Open the Installed tab, find the F# Support plugin, and select the checkbox next to the plugin name.
Code inspection
The analysis is performed by applying code inspections to the current document or in any specified scope.
![JetBrains Rider: Highlighting F# error JetBrains Rider: Highlighting F# error](https://resources.jetbrains.com.cn/help/img/rider/2024.3/FSharp_code_highlighting_error.png)
Solution-Wide Analysis
JetBrains Rider not only analyzes errors in the current file, but also inspects the whole solution taking the dependencies between files into account.
![JetBrains Rider: Errors in solution JetBrains Rider: Errors in solution](https://resources.jetbrains.com.cn/help/img/rider/2024.3/rdr_solution_wide_analysis_StatusBar.png)
Open the All Solution Files tab of the Problems window Alt+6 to view the results of analysis.
![JetBrains Rider: Errors in solution. F# JetBrains Rider: Errors in solution. F#](https://resources.jetbrains.com.cn/help/img/rider/2024.3/rdr_solution_analysis_window.png)
For more information, refer to Solution-wide analysis.
Inspect This
Inspect This is a shortcut to several powerful analysis features that allow you to see how values and method calls flow through your code. The list of available features depends on the current context.
![JetBrains Rider: 'Inspect This' in F# JetBrains Rider: 'Inspect This' in F#](https://resources.jetbrains.com.cn/help/img/rider/2024.3/FSharp_inspect_this.png)
For more information, refer to Call tracking and Value tracking.