Vscode-cpptools: C_Cpp.clang_format_style: IndentWidth is invaild

Created on 22 Nov 2016  路  3Comments  路  Source: microsoft/vscode-cpptools

_From @yayuntian on November 22, 2016 8:43_

Steps to Reproduce:

  1. install c/c++ plugins
  2. edit settings.json

{ "C_Cpp.clang_format_style": "{BasedOnStyle: Google, IndentWidth: 4}" }

but c/c++ code indentwidth always display 2

_Copied from original issue: Microsoft/vscode#15866_

Language Service

Most helpful comment

I am having the same issue on macOS 10.12.1, vscode 1.8.0

All 3 comments

I am having the same issue on macOS 10.12.1, vscode 1.8.0

windows 10 ,vscode 1.11.0

same issue.

last,i found the problem.i install C/C++ and Clang-Format.
when i uninstall Clang-Format,the indent width was display 4.

This appears to be fixed in the latest version of the extension. If you continue to see this problem, please reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings