Skip to content

There is no formatter for C #13789

@chuan02162

Description

@chuan02162

Environment

  • OS and Version: Debian GNU/Linux 12 (bookworm)
  • VS Code Version: 1.96.0
  • C/C++ Extension Version: 1.26.3
  • If using SSH remote, specify OS of remote machine: MacOS

Bug Summary and Steps to Reproduce

Bug Summary:
This bug came out when I updated to the newest version of cpptools extension(1.26.3). I tested the previous version(1.25.3) works well.

Steps to reproduce:

  1. Go to *.c
  2. Ctrl + Shift + I (Format Document)
  3. Error: There is no formatter for C

Expected behavior:
Format the code

Configuration and Logs

setting.json:
{
    "explorer.confirmDelete": false,
    "C_Cpp.clang_format_style": "xxx/.clang-format",
    "editor.formatOnSave": true
}

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions