From 94e94d83c4213c0dfdf287210461ce516f7434fd Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Sat, 23 Jul 2016 18:05:16 +0300 Subject: [PATCH] add clang autoformat settings to sublime project --- .clang-format | 3 +++ cmclient.sublime-project | 18 ++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..550b9b6811 --- /dev/null +++ b/.clang-format @@ -0,0 +1,3 @@ +BasedOnStyle: LLVM +IndentWidth: 4 +SpacesBeforeTrailingComments: 2 diff --git a/cmclient.sublime-project b/cmclient.sublime-project index e61e748033..a42f94c52d 100644 --- a/cmclient.sublime-project +++ b/cmclient.sublime-project @@ -1,13 +1,4 @@ { - "build_systems": - [ - { - "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", - "name": "Anaconda Python Builder", - "selector": "source.python", - "shell_cmd": "python -u \"$file\"" - } - ], "folders": [ { @@ -18,5 +9,12 @@ "follow_symlinks": true, "path": "." } - ] + ], + "settings": + { + "ClangFormat": { + "style": "File", + // "format_on_save": true, + } + } }