How Do I Comment out in Vbscript

How Do I Comment out in Vbscript

The apostrophe is the special character VBScript uses as its comment initiator. The comment in VBScript works by making the VBScript interpreter ignore everything to the right of the apostrophe until a newline is reached.

How do you comment out a line in Visual Basic?

You can use Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U to comment or uncomment selected lines of text.

How do you comment out code?

In the C/C++ editor, select multiple line(s) of code to comment out. To comment out multiple code lines right-click and select Source > Add Block Comment. ( CTRL+SHIFT+/ ) To uncomment multiple code lines right-click and select Source > Remove Block Comment.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.