# Format query (beautify/minify/uglify)

In TablePlus, you can reformat the query to make it more readable using either the built-in Beautify feature, or install the SQL Formatter Plugin.

## **Beautify**

You can reformat the queries in SQL query editor:

* Select the queries in the Query Editor.
* Click **Beautify** or use shortcut key **`⌘ + I`** to beautify the queries.
* Click the dropdown next to **Beautify** button and choose **Uglify**, or use shortcut key **`⌘ + ⇧ + I`** to uglify the queries.

![](/files/-LruAcf85juooMrpk78i)

## **SQL Formatter Plugin**

This plugin helps reformat the SQL statements.

To install it:

* Navigate to menu **Plugin** > **Manage Plugins...**, or press **`⌘ + L`**
* Select **SQL Formatter Plugin** and install

To use it:

* Select the SQL statements
* Navigate to menu **`Plugin`** > **`SQL Format`**, or press **`⌃ + I`**


---

# 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.tableplus.com/query-editor/query-reformat.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.
