SQL code formatting overview

Last modified: June 23, 2025

dbForge Studio for MySQL provides a powerful SQL formatting tool that helps you clean up and organize your code for better readability and consistency. You can format entire scripts or selected fragments with just a click, apply predefined formatting profiles, or create your own. The built-in Formatting Wizard also allows batch formatting of multiple files or folders, making it easy to maintain clean and standardized SQL code across your projects.

With dbForge Studio, you can do the following:

  • Create, edit, and apply custom formatting styles.
  • Use predefined formatting profiles.
  • Format multiple SQL files or entire folders in bulk using SQL Formatter.
  • Format code instantly in the editor or using a shortcut menu.
  • Control keyword casing, indentation, alignment, line breaks, etc.
  • Preview real-time changes while configuring formatting rules.
  • Automate formatting from the command line.
  • Format all files in subdirectories during batch processing.

Formatting your code in dbForge Studio for MySQL