You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying the style for a clang format configuration file with a custom name in a project's root directory, the user needs to specify the absolute path otherwise the config file is not found:
"clang-format.style": "file:.custom-name-clang-format"
Error reading .custom-name-clang-format: No such file or directory
I wasn't able to determine what folder the clang-format command is being ran from or why the file name alone does not work. clang-format should be looking in parent directories to find the config file.
The Clang-format: Executable and Clang-format: Assume Filename settings support placeholders but the Clang-format: Style setting does not. Supporting placeholders in the Clang-format: Style setting could fix this issue but there may be a more simple solution.
The text was updated successfully, but these errors were encountered:
When specifying the style for a clang format configuration file with a custom name in a project's root directory, the user needs to specify the absolute path otherwise the config file is not found:
An absolute path works:
I wasn't able to determine what folder the clang-format command is being ran from or why the file name alone does not work. clang-format should be looking in parent directories to find the config file.
The
Clang-format: Executable
andClang-format: Assume Filename
settings support placeholders but theClang-format: Style
setting does not. Supporting placeholders in theClang-format: Style
setting could fix this issue but there may be a more simple solution.The text was updated successfully, but these errors were encountered: