SublimeClangFormat icon indicating copy to clipboard operation
SublimeClangFormat copied to clipboard

Allow custom file

Open abergmeier-dsfishlabs opened this issue 9 years ago • 3 comments

We have our custom file in a certain directory. Sadly it seems like I cannot set a custom path to that format file.

abergmeier-dsfishlabs avatar Aug 19 '16 11:08 abergmeier-dsfishlabs

Unfortunately I don't have much time to support new features right now, but I will happily accept pull requests.

rosshemsley avatar Aug 19 '16 12:08 rosshemsley

clang-format usually reads custom file (.clang-format) if available in the folder and if not going up in the folder tree, looking in all the parent folders. How does it work, as of now?

cenit avatar Jan 21 '18 18:01 cenit

Right, it seems the only way to specify the clang-format is via sublime settings which is quite cumbersome when most users already have a .clang-format file sitting in their directory. It's a shame the only tool on package control does not support this, I've found this to be much more usable even with its quirks:

https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/clang-format-sublime.py

chere005 avatar Mar 01 '19 17:03 chere005