> ## 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.

# Formatting

In the settings, you can choose your preferred SQL dialect.
Once applied, your selected dialect and formatting will be saved accordingly.

## Formatting directly in your editor

Highlight your SQL, right-click, or use `Cmd/Ctrl + Shift + 0` to format it instantly in your editor.

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://mintcdn.com/sherloq-31da1dfe/tD9AIrHANoNaF5Xm/images/formatting_new.mp4?fit=max&auto=format&n=tD9AIrHANoNaF5Xm&q=85&s=74f3022906168c86b882d051eee5110f" data-path="images/formatting_new.mp4" />

## Fomratting in Sherloq

To easily read a query as you’re used to in your IDE, in the `query profile` click on the formatting button to adjust the indentation and spacing automatically.

<img width="600" alt="Formatting" src="https://mintcdn.com/sherloq-31da1dfe/tD9AIrHANoNaF5Xm/images/formatting.png?fit=max&auto=format&n=tD9AIrHANoNaF5Xm&q=85&s=03b7f9dff806de7f956553bd33dfb526" data-path="images/formatting.png" />

<Note />
