Skip to content

Add Code Style Settings for SQL Formatter #330

@xterao

Description

@xterao

Enable customization of SQL formatting behavior through IntelliJ's settings UI, allowing users to configure style preferences for specific SQL constructs.


Features

  • Indentation and spacing controls
    Allow users to define:

    • Number of spaces per indent
    • Whether to align keywords (e.g., AND, OR, JOIN)
    • Space before/after parentheses or commas
  • Line break rules
    Let users customize line-break behavior for:

    • SELECT columns
    • VALUES clauses
    • ON, WHERE, JOIN, RETURNING blocks
  • Keyword and function list customization
    Users can specify:

    • Keywords to be treated with special formatting
    • Custom SQL functions to recognize for formatting consistency (e.g., user-defined functions)

Integration

Settings will be available via:
Preferences > Editor > Code Style > SQL (Custom Dialect)

These options give developers flexibility to align formatting with project-specific conventions or personal preferences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions