Feature request : allow to use a custom .clang-format #1082

Folcogh opened this Issue Dec 28, 2015 · 2 comments


None yet

2 participants

Folcogh commented Dec 28, 2015

Would it be possible to allow to use a .clang-format, as documented here : http://clang.llvm.org/docs/ClangFormat.html , please ?
It would throw a command like clang-format -i <specified .clang-format> *.?pp>, it could save and reload automagically the formatted files.

What do you think about that ? Thanks in advance.

Notes :

  • I have tried to get that with the External Tools, but something fails in file reloading, IIRC. I could investigate again if you wish.
  • I ask for such a feature because it's handy to have only one .clang-format for all its IDE and projects.

Last note : the ClangFormat Options dialog is incomplete or outdated, so providing this way to format sources would easily fix that flaw, avoiding you to maintain too often that dialog.

@eranif eranif closed this in 9dd38d9 Sep 2, 2016
eranif commented Sep 2, 2016

New option was added from Plugins->Source Code Formatter->clang-format you can now select a new style: "File"
When selected, the .clang-format file is used

Folcogh commented Sep 3, 2016

Oh, many thanks Eran, good job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment