Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Last active January 21, 2025 20:41
Show Gist options
  • Save nickcernis/5784e4ff7d06bc6e9afb582549fdd310 to your computer and use it in GitHub Desktop.
Save nickcernis/5784e4ff7d06bc6e9afb582549fdd310 to your computer and use it in GitHub Desktop.
Minimal .clang-format, requires clang-format 16+
---
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
ColumnLimit: 135
PointerAlignment: Left
AllowShortFunctionsOnASingleLine: None
InsertNewlineAtEOF: true
NamespaceIndentation: All
FixNamespaceComments: false
{
"configurations": [
{
"name": "Mac", // or "Win32", "Linux" depending on your OS
"includePath": [
"${workspaceFolder}/**"
],
"cppStandard": "c++23",
"intelliSenseMode": "macos-clang-x64" // or "windows-gcc-x64", "linux-gcc-x64"
}
],
"version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment