Skip to content

C++20 Module File Extensions not recognized by default #45980

@SturdyFool10

Description

@SturdyFool10

Reproduction steps

  1. start zed
  2. create file .cppm
  3. notice no syntax highlighting

this is a small thing, which can be fixed with a settings.json file, but it would be nice to not have to, the full C++ extension list is:
"cpp",
"cc",
"cxx",
"c++",
"cp",
"hpp",
"hh",
"hxx",
"h++",
"hp",
"cppm",
"cxxm",
"ccm",
"c++m",
"ixx",
"mpp",
"mpl",
"ipp",
"tpp",
"inl"

Current vs. Expected behavior

the ideal is just that it just recognizes any C++ extension listed above as C++ without needing to add a supplementary settings.json to fix that, realistically I imagine this is a 5 second fix but it would be some good QoL for the C++ people

Zed version and system specs

Zed: v0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1 (Zed)
OS: Windows 10.0.26200
Memory: 61.6 GiB
Architecture: x86_64
GPU: AMD Radeon RX 9070 || AMD Corporation || 25.12.1 (25.20.29.09-251203a-196284C-AMD-Software-Adrenalin-Edition)

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:languages/c++C++ programming language supportfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions