Home > OS >  C/C Extension Formatter Appears Not to Work
C/C Extension Formatter Appears Not to Work

Time:02-27

When I run Ctrl-Shift-I, I get the pop-up "There is no formatter for 'cpp' files installed." However, I do have the Microsoft C/C extension installed. Why might I be getting this error message?

To clarify, I am aware of other third-party formatters (e.g., the Clang-Format package) but ideally I would like to get the formatter in the C/C extension working.

CodePudding user response:

Try manually setting it in your settings.json, it may have an incorrect configuration.

"[c]": {
    "editor.defaultFormatter": "ms-vscode.cpptools"
}

CodePudding user response:

The simplest way to unistall and install vs code. And install c/c exetension from the Microsoft.

  • Related