Skip to content

C++: Comment block always auto-adds end symbol #77008

@rewrking

Description

@rewrking
  • VSCode Version: 1.36.0
  • OS Version: Windows 10 / Mac OS

Steps to Reproduce:

  1. Write any c++ code inside of a .cpp/h/hpp etc file.
  2. Type "/*" at the begging of of a line that has already been written
  3. Notice "*/" gets automatically added afterwards, but before the code, so nothing actually gets commented out

Simple example, where "|" denotes the cursor position:

/*| */void mySoonToBeCommentedFunction() {}

"/*" shouldn't auto-add the end symbol of the comment block by default, should be setting controlled, and should be able to recognize when it's been entered at the start of a line.

Does this issue occur when all extensions are disabled?: Yes

Originally reported here:
microsoft/vscode-cpptools#3904

They forwarded me to you folks, so I'm assuming this was added to the "C/C++ Language Basics" built-in extension without a setting to control it. Please for the love of god fix this. It's super annoying.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions