pastila icon indicating copy to clipboard operation
pastila copied to clipboard

Query Formatting Option

Open Ashmita152 opened this issue 3 months ago • 0 comments

It would be great to have a Format Query option to automatically format pasted SQL queries for better readability.

For example, when I paste a query like:

select avg(price),
toStartOfMonth(date) as month_
from uk_price_paid
WHERE toYear(date) > 2004 AND toYear(date) < 2011
GROUP BY month_;

it should automatically format into a more readable structure with proper indentation to something like this

select
    avg(price),
    toStartOfMonth(date) as month_
from
    uk_price_paid
WHERE
    toYear(date) > 2004
    AND toYear(date) < 2011
GROUP BY
    month_;

Ashmita152 avatar Oct 08 '25 07:10 Ashmita152