A simple Visual Studio Code extension that enforces Kernighan & Ritchie (K&R) C style formatting globally, without requiring per-project configuration.
Features
Automatically formats C code using the K&R brace style
Works globally, no need for .clang-format in every directory
Format on Save or manually via Command Palette
Usage
Install the extension from the VSCode Marketplace (or sideload locally)
Open any .c or .h file
Formatting will occur on save, or trigger manually via:
Cmd+Shift+P → Format Document
Testing Locally
To test the extension locally, follow these steps: