Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97420

VsCode - Editing .clang-format has no effect

$
0
0

I have installed the Clang-Format extension and the C/C++ extension. My code does format according to the .clang-format file (according to its content as it was downloaded from the Clang-Format extension), but editing it does not change the actual formatting. The clang-format.exe file is from the C/C++ extension.

Here is the .clang-format file like it is in the places I have edited it. Top: Top Bottom: Bottom

Here is the relevant json: enter image description here

The "C_Cpp.clang_format..." lines seem to have no effect when I comment them out. Like I said, formatting will still happen, just not the way I would like.

Other extensions I use are "Project Templates" and "Bracket Pair Colorizer 2".

Also, formatting happens only when I save. "ctrl + alt + F" does nothing.


Viewing all articles
Browse latest Browse all 97420

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>