Hi. I've installed official C/C++ extension, got the latest update. It works flawlessly. The one problem I faced is the fact, that when I use Format Document, it does format it, okay. But when I place .clang-format file (even generated with clang-format binary) it doesnt format the file. I can place it in workspaceRoot, or in directory above that, it just doesnt do anything. Here's my user_settings.json:
{ "python.formatting.provider": "autopep8", "python.formatting.formatOnSave": true, "C_Cpp.clang_format_style": "file" }
When I delete the file, or I switch the C_Cpp.clang_format_style to f.e "{IndentWidth: 4}" it does work
Hi. I've installed official C/C++ extension, got the latest update. It works flawlessly. The one problem I faced is the fact, that when I use Format Document, it does format it, okay. But when I place .clang-format file (even generated with clang-format binary) it doesnt format the file. I can place it in workspaceRoot, or in directory above that, it just doesnt do anything. Here's my user_settings.json:
{ "python.formatting.provider": "autopep8", "python.formatting.formatOnSave": true, "C_Cpp.clang_format_style": "file" }When I delete the file, or I switch the
C_Cpp.clang_format_styleto f.e"{IndentWidth: 4}"it does work