Use the command link Save Actions preference page to configure actions performed by the C/C++ editor (LSP) while saving a file:

lsp save prefs

Save Actions Preference Options
Option Description

Format source code

While saving a file, the editor will format all lines or edited lines only.

Related concepts: