Skip to content

Format in Editor

Manually format the current selection or the entire script directly in the SSMS editor.

How to format

  • Right-click in the editor and choose "Style SQL in Editor".
  • Or click the StyleSQL toolbar button for one‑click formatting.
  • If you have a selection, only the selection is formatted. If not, the entire document is formatted.

Editor context menu: Style SQL in Editor

Choosing your formatter

Pick the formatter engine and options that match your taste in Global Settings.

Tips

Keyboard shortcut

  • Format in Editor: Ctrl+K, Ctrl+F