Formats modified sections of code on save. This is useful where you have a legacy codebase where you want to only format code changes and new code.
Requires git and clang-format. The location of the clang-format executable will be determined from
You can install the latest version of the extension via the Visual Studio Marketplace here.
Alternatively, open Visual Studio code, press
The source code is available on GitHub here.
Enable this to create an output channel showing information for debugging purposes.
The extension will try and find the
Use this to control which files are formatted. It is set to
clang-format insists on formatting the line after any specified ranges of lines, even if only a single line is specified.