Skip to content

Query Formatting Option #34

@Ashmita152

Description

@Ashmita152

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_;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions