C formatter issue

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

FormattingExtension ‘C/C++’ is configured as formatter but it cannot format ‘C’-files

FormattingExtension ‘C/C++’
Identifier
anysphere.cpptools
Version
2.0.2
Last Updated
2025-11-19, 16:38:02

Steps to Reproduce

open C project

Expected Behavior

format ‘C’-files with FormattingExtension ‘C/C++’

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. The anysphere.cpptools extension doesn’t provide formatting functionality. It uses the built-in clangd for language features.

For formatting C/C++ files, I recommend installing a separate Clang-Format extension: Open VSX Registry

After installing it, you can set the path to your preferred clang-format version via the clang-format.executable setting.

A similar issue was discussed here: Anysphere C/C++ extension and formatting

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.