Skip to content

[cpp] support cpp block comment as an auto-closing pair #72801

@vince-fugnitto

Description

@vince-fugnitto

Description

Currently, when editing a cpp file, the command ctrl+shift+a (toggle block comment) generates the following comment placeholder /* */.

https://github.com/Microsoft/vscode/blob/1cf51f4f5b970384a4cccd3df5d5d00fa9178468/extensions/cpp/language-configuration.json#L4

I wonder if it might be also wise to include this as an auto-closing pair so that when users attempt to write /* the closing */ is automatically added like other languages (ex: Typescript).

https://github.com/Microsoft/vscode/blob/1cf51f4f5b970384a4cccd3df5d5d00fa9178468/extensions/cpp/language-configuration.json#L11-L16

{ "open": "/*", "close": "*/", "notIn": ["string"] }

Metadata

Metadata

Assignees

Labels

editor-autoclosingEditor automatic closing of parens / brackets / etc.feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitieslanguages-basicBasic language support issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions