microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.3k stars 29.31k forks source link

Multiple line commenting does not work for languages like XML/HTML #140905

Open erenseymen opened 2 years ago

erenseymen commented 2 years ago

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

Steps to Reproduce:

  1. Open an XML/HTML file
  2. Select multiple lines
  3. Use "Add Line Comment" or "Toggle Line Comment" function Expected: Each selected line is commented separately. (line comment) Actual: Block comment happens.

This is duplicate of https://github.com/microsoft/vscode/issues/35464 which was closed by bettercomment extension solution. I wanted to revive this issue because I think this issue shouldn't be solved by an extension. This is a core function in my humble opinion.

starball5 commented 1 year ago

Note: Rectangular selection (just a fast way of doing multi-cursor for consecutive lines) + the comment shortcut should do what you want I think. I personally like the way it's working right now.