Skip to content

feat: Command to format selection instead of whole file #167

@nikclayton

Description

@nikclayton

Consider a file that's not SQL, but contains embedded SQL, perhaps a multi-line string.

val query = """
SELECT x
      FROM
  bar
"""

The extension can't currently process that.

I'd like to be able to select the SQL (either manually, or, preferably, have it auto-select everything in the string the cursor is in), run the "fix" command, and have the fixed query replace the selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions