-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify a path for .clang-format via VS Code settings.json #10445
Comments
The context is we want to ship our customized .clang-format file in a Docker image. Users launching a dev container using our image (with the accompanied .devcontainer.json) can automatically use our formatting styles without extra configuration. |
@rongxin-liu |
@michelleangela Thanks! But I'm looking into specifying a file path for |
@michelleangela Ah, just found out that this setting does exactly what we need:
|
@rongxin-liu |
Feature Request
Currently, per this documentation, VS Code would look for a .clang-format file in user's workspace and apply those settings. If .clang-format file is not found, it uses its default formatting style shipped with the C/C++ extension.
Would it be possible for users to specify the .clang-format file at a location other than the workspace, perhaps in settings.json, allowing more flexibility?
The text was updated successfully, but these errors were encountered: