Closed chscott closed 2 months ago
@chscott You appear to be describing "by design" behavior of clang-format -- clang-format doesn't have any knowledge about your workspace, which is a VS Code concept. It looks for the .clang-format file in the folder of the file and it's parent, so in your example it would look only in C:/temp and C:/ and not your workspace folder.
Environment
Windows 11
1.92.0
v1.21.6
N/A
Bug Summary and Steps to Reproduce
Bug Summary:
Problem config:
With this configuration, formatting a document does nothing. I see this output:
Working config:
With this configuration, it works. I see this output:
Steps to reproduce:
As above
Expected behavior:
The workspace
.clang-format
should be found when"C_Cpp.clang_format_style": "file"
.Configuration and Logs
As above
Other Extensions
No response
Additional context
No response