Skip to content

Incorrect ANSI-C line comments #9345

@VernonGrant

Description

@VernonGrant

Hi, I need to follow strict ANSI-C coding standards on a project. From my understanding, ANSI-C only supports comments that are in the style of block comments. The issue is when I press the shortcut CTRL-/, I still get line comments in the format of:

// if (something == 0) break;

But what I really need is the comment to be in this format:

/* if (something == 0) break; */

I did change the C_Cpp.default.cStandard to c89 but it has no effect. How can I solve this issue? Because now commenting out lines are very cumbersome, I need to manually select the line and then press CTRL-SHIFT-A. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions