Block commenting lines of code, including entire line of selected text
I'm trying to block comment lines of code, starting with the entire line of code of where I begin my text selection. In PHPStorm, the block commenting starts precisely where I select the text — which makes sense.
In VS Code, block commenting will comment out the entire first line of code, regardless of where my text selection starts on the first line.
Is there a way to configure the behavior of block commenting this way?
请先登录再写评论。
I am afraid this behaviour cannot be controlled and I was not able to find any requests on YouTrack apart from this ancient declined ticket:
https://youtrack.jetbrains.com/issue/WI-20307/Add-option-Comment-whole-lines-with-block-comments
As a sort of workaround, you might want to use Line comment instead, it should work in the way you need but there will be series of line comments instead, like:
Bummer. Thanks for checking and letting me know!