SublimeClangFormat icon indicating copy to clipboard operation
SublimeClangFormat copied to clipboard

Possible to use yaml clang-format as config?

Open richardeakin opened this issue 10 years ago • 2 comments

Hello and thanks for this plug-in, it was a breeze to install and get up and running.

I was wondering, is it possible to use a standard config file for this plug-in, written in yaml (such as ~/.clang-format or one at a user specified path)? I'd like this so that I could re-use the clang-format settings that are used by a different application.

cheers, Rich

richardeakin avatar Oct 11 '14 11:10 richardeakin

I've actually never tried it, but it should work just fine.

Just choose Clang Format: Select Style from the Command Palette and then choose File.

It will (should) then do whatever Clang Format does when you tell it to look for a config file.

Let me know if you encounter any problems!

rosshemsley avatar Oct 11 '14 11:10 rosshemsley

Yes, this works!

bilke avatar Aug 20 '15 09:08 bilke