ADCode

Built-in formatter

Tidies your code for you - puts the spaces, indents and line breaks in the same places every time.

When you would want it

Arguing about where the spaces go is the least valuable thing a person can do with their day. A formatter ends the argument by always doing the same thing.

Where to find it

  • All Features → Built-in formatter
  • Settings → adcode.formatting.formatter
  • Keyboard → Shift+Alt+F

How to use it, step by step

On by default, and there is nothing to install.

  1. Press Shift+Alt+F to tidy the open file.
  2. If a language server is running for that language, ADCode asks it first, because it knows the language better than we do; otherwise ADCode's own formatter does it.

Why this beats the usual way

Elsewhere, consistent formatting is a ritual: pick a formatter, install it, write a config, wire it to save. ADCode ends the ritual - a built-in formatter, on by default, that defers to your language server when one knows better and never mangles a file it cannot handle.

Shortcut

Shift+Alt+F

Find it in Universal Search

Built-in formatter · Formatting