All apps/dprint

dprint

dprint

A pluggable and configurable code formatting platform. One fast, secure tool for every language in your repo.

Runs as dprint|macOS, Linux, Windows|dprint.dev

Command form

ai-draft · 2 tasks · 7 fields

Format or check source files with dprint. Plugin management and config subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui dprint

dprint fmt

Format files

Format files in place. Leaves out --stdin.

Format filesExample values, fixed in this page — nothing here reaches a terminal
Basic
File patterns
string
Show diff
--diff
Advanced
Exclude patterns
string
TasksEach one presets the form for one job
Format
filesdiffexcludes
ParametersOnly these flags are editable in the form
File patterns
Quote patterns; they override the config file.
string · positional 0 · repeatable
Show diff
boolean
--diff
Exclude patterns
string · repeatable
--excludes
Allow node_modules
boolean
--allow-node-modules

dprint check

Check formatting

List files that are not formatted.

Check formattingExample values, fixed in this page — nothing here reaches a terminal
Basic
File patterns
string
Exclude patterns
string
TasksEach one presets the form for one job
Check
filesexcludes
ParametersOnly these flags are editable in the form
File patterns
string · positional 0 · repeatable
Exclude patterns
string · repeatable
--excludes
Allow node_modules
boolean
--allow-node-modules
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed dprint against its version. A form that does not match your version is not offered.