

Add an inclined bar at the beginning of the line to comment. Remove an inclined bar at the beginning of the line to uncomment.
#Comment and uncomment in visual studio 2019 code
The following languages are supported by default:įull release notes are available in the CHANGELOG file. In Visual Basic you are stuck with either the ( ) or ( REM: ). When We have a very long code and need to comment and uncomment quickly: ADD at the beginning of the BLOCK: ///TODO: Comment or uncomment this block.

In Visual Studio, the comment and uncomment buttons are included in the Text Editor option, and Visual Studio 2012 (and maybe later versions) does not add the Text Editor option in the Visual Studio toolbar by default. Select the commented or uncommented line to execute the command. Show comment and uncomment in Visual Studio 2019. * background: linear-gradient(to bottom, white, black) */ ~~> ->īackground: linear-gradient(to bottom, white, black) Lorem ipsum dolor, sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. When We have a very long code and need to comment and uncomment quickly: ADD at the beginning of the BLOCK: ///TODO: Comment or uncomment this block. This extension will maintain your original comments and allow you to quickly toggle comments on sections of code.

If you need to comment out a portion of your code that includes pre-existing comments, the native commenting functionality will not comment properly or preserve your existing comments. It also reverses the effect to uncomment the same block of code. This extension will convert pre-existing comments to safe characters, allowing a new block comment that includes the original comment. If an existing comment is included in the content being commented out, the first instance of a -> or */ closing comment tag will end the entire comment. For example, you could include a block comment right in a cmdlet call. If your code contains a comment, and you want to add a new comment to temporarily disable a block or portion of code, the built in commenting functionality does not actually place the comment tags in expected locations.
