Did you know… How to quickly comment and uncomment in your web pages?

原文链接: https://www.cnblogs.com/inday/archive/2009/06/16/1504437.html | 迁移自博客园


Select the lines you want to be commented in your ASPX, HTML, web config file etc and click on the Comment/ Uncomment icon in Toolbar.

The comment icon looks like this:

Comment Icon

The icon for uncomment looks like:

Uncomment

Alternatively you can use Keyboard shortcut Ctrl+K Ctrl+C to comment and useCtrl+K Ctrl+U to uncomment.

Comments in ASPX page…

Comments in ASPX page

Comment in HTML page…

Comments in HTML page

Comment in script blocks…

Script block

This shortcut is available under Edit Menu- >Advance –>Comment Selection /Uncomment Selection.

Comment Uncomment Menu Option

Enjoy!

Reshmi Mangalore

SDET| Visual Web Developer