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.

Now supported only in DataGrip, more editors coming soon.

You can always click redo to see your previous query.