# Analysis

PowerShell Pro Tools uses PSScriptAnalyzer to run static code analysis of PowerShell scripts in Visual Studio. You can enable analysis by click View->PowerShell->Settings. Click Save after modifying the settings.&#x20;

![Script Analyzer Settings](/files/xEWdGtxeNZpnPJ6Wb5TV)

On the options page, you can turn on and off script analyzer completely, manage solution wide analysis, disable specific severities or even specific rules.&#x20;

When Script Analyzer is enabled, squiggly lines will be present within source files to provide information on potential issues with the ability to provide quick fixes for those issues.&#x20;

If you have solution wide analysis enabled, you will be able to see errors within your entire solution within the Error List window.&#x20;

![Error List Window](/files/-LtN_mz-Upm3Q57FN9Qd)

## Quick Fix

PowerShell Pro Tools supports quick fix actions provided by PSScriptAnalyzer. If the suggestion has a Suggested Correction, PowerShell Pro Tools will provide a Quick Action light bulb next to the line that needs to be addressed.&#x20;

![Executing quick fix actions](/files/-LPpPZBNPkI6qNlt0K4U)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.poshtools.com/powershell-tools-documentation/visual-studio/analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
