Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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