How to comment a line? Too many different to remember?
How to comment out a line in Visual Studio?
Differrent language uses different method to comment out a line.
- .aspx file:
<% —
–%>
- .vb file:
apostrophy ‘ line
eg ‘ comment
C#.Net:
// single line comment
/* */ multiple line comments
Tire of remmeber each method?Visual Studio is smart engout.No matter which language you’re using to code, when you want to comment out one line or multiple lines, use VS tool to do it.
Fast Key:
Ctr+K,Ctr+C to comment out
Ctr+K,Ctr+U to uncomment out
or
HTML comments start with tag tag
<!–This is a comment. Comments are not displayed in the browser–>
HTML multiple line comments are also the same syntax. HTML doesn’t allow nested comments , that is, a comment inside another comment.