Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Formatter

ndc fmt formats Andy C++ code in place:

ndc fmt solution.ndc lib/*.ndc

Without files it reads standard input and writes the formatted code to standard output, which is how editors usually call a formatter:

ndc fmt < solution.ndc

With --check it changes nothing, lists the files that aren’t formatted and fails if there are any, which suits a CI job:

ndc fmt --check *.ndc