Skip to content

Code blocks in Doxygen comments have a leading space #14405

@cD1rtX3

Description

@cD1rtX3

Type: Bug

/**
 * a
 *
 * ```c
 * a
 * ```
 *
 * @param a a
 */
void f(int a) {}
Image

This occurs because we don't strip the single space after the star. If it wasn't there, this doesn't happen:

/**
a

```c
a
```

@param a a
 */
void f(int a) {}
Image

Extension version: 1.32.1
VS Code version: Code 1.117.0 (10c8e557c8b9f9ed0a87f61f1c9a44bde731c409, 2026-04-21T16:12:14-07:00)
OS version: Linux x64 6.8.0-110-generic
Modes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Doc commentsAn issue related to code comments shown in hover, completion, and signature help.Language ServicebugverifiedBug has been reproduced

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions