Skip to content

Wrong indentation for else block in C++. #41179

@abhiphile

Description

@abhiphile

Summary

The else blocked is moved automatically to right without which is very frustrating to use while coding in C++, and every time I need to correct the indentation of the else block.

Description

Screen.Recording.2025-10-25.at.9.48.42.PM.mov

Expected Behavior: The else block should be indented correctly for cpp files.
Actual Behavior: Indentation of else block is wrong.

Zed Version and System Specs

Zed: v0.209.5 (Zed)
OS: macOS 15.7.1
Memory: 48 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions