> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sherloqdata.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Fix SQL Syntax Errors

> Fix SQL syntax errors using AI, directly in your IDE in 1 click.

After running a query on your SQL Editor / IDE, near the error you'll see the Sherloq Button pop.

Click the button to automatically fix the error directly in your IDE.

Click undo to go back to your original query, click redo to see the error of the syntax fix.

<Note>
  Now supported only in DataGrip, more editors coming soon.
</Note>

<Note>
  You can always click redo to see your previous query.
</Note>

<img src="https://mintcdn.com/sherloq-31da1dfe/tD9AIrHANoNaF5Xm/images/fix_syntax_error.png?fit=max&auto=format&n=tD9AIrHANoNaF5Xm&q=85&s=1eeaa834fc23abac9ec0d222cf63138f" alt="Fix AI" width="2064" height="1764" data-path="images/fix_syntax_error.png" />
