Skip to content

Instantly share code, notes, and snippets.

@zawupf
Last active March 31, 2023 07:49
Show Gist options
  • Save zawupf/a83d3d3260c43c12369d242f511caaa3 to your computer and use it in GitHub Desktop.
Save zawupf/a83d3d3260c43c12369d242f511caaa3 to your computer and use it in GitHub Desktop.
formatting clang-format editorconfig prettier
BasedOnStyle: LLVM
ColumnLimit: 80
IndentWidth: 2
AlignAfterOpenBracket: Align
BinPackParameters: false
BinPackArguments: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
---
Language: Cpp
IndentWidth: 2
ForEachMacros: ['foreach']
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4
# We recommend you to keep these unchanged
max_line_length = 80
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{fs,fsx}]
fsharp_multiline_bracket_style = stroustrup
# fsharp_newline_before_multiline_computation_expression = true
[*.md]
trim_trailing_whitespace = false
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
proseWrap: 'always',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment