Skip to content

Instantly share code, notes, and snippets.

@pajlada
Created January 7, 2018 19:38
Show Gist options
  • Save pajlada/0296454198eb8f8789fd6fe7ea660c5b to your computer and use it in GitHub Desktop.
Save pajlada/0296454198eb8f8789fd6fe7ea660c5b to your computer and use it in GitHub Desktop.

Document Style Guidelines

Get it automated with QT Creator + Beautifier + Clang Format

  1. Download LLVM: http://releases.llvm.org/5.0.1/LLVM-5.0.1-win64.exe
  2. During the installation, make sure to add it to your path
  3. In QT Creator, select Help > About Plugins > C++ > Beautifier to enable the plugin
  4. Restart QT Creator
  5. Select Tools > Options > Beautifier
  6. Create a custom style called Chatterino, and copy paste the contents of .clang-format into it (I don't think the file can be automatically detected by QT Creator yet)
  7. Add a hotkey for the "Clang format file". I use F1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment