Skip to content

can't set clang format executable path #4

@ZhaoXiangXML

Description

@ZhaoXiangXML

I'm using VSCode 1.81.1 and v2.0.2 of seaube.clangformat on Windows.

I've installed clang-format with npm install clang-format.

I've this setting in my workspace settings.json:

"clangFormat.executable.default": "${workspaceRoot}/node_modules/.bin/clang-format"

When I try to format a file, vscode tells me:

'/c:/Projects/TestProject/node_modules/.bin/clang-format' command is not available. Please check your clang-format.executable user setting and ensure it is installed.

Please note the error message says I should check clang-format.executable setting, the readme file says I should set clangFormat.executable setting, but from what I found out the correct setting key is clangFormat.executable.default.

So how can I set clang-format executable correctly on Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions