# C/C++ source code auto-formating by clang-format ## Windows 1. Install LLVM 2. Command prompt ``` clang-format -style=Google -i %INPUT_FILE%.cpp ``` ## Ubuntu 1. apt install clang-format 2. Command ``` clang-format -style=Google -i $INPUT_FILE.cpp ``` ###### tags: `clang-format`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up