Monday, November 12, 2012

How to quickly comment a block of code in VB

How to quickly comment a block of code in VB


How do we classify parts of the code.  How to hide code. How to bring up the hidden code. How to enable automatic grouping. How to put line numbers in code.

Table of Content





Introduction

The apostrophe is used to comment out all that is to the right of the line. Is there a way to put a comment a paragraph or a large block of code in Visual Basic Express. NET? The answer is yes.
This is a sequence of key combination that allows you first to get your answer.

Walkthrough

Set comments

Select the desired lines of code
Make a CTRL + K
Then made a CTRL + C

Remove comments

Select the desired lines of code
Make a CTRL + K
Then made a CTRL + U

Conclusion


For programmers C + + or Java, Visual Basic does not allow comment blocks in the form of special braces / * and * /.

Note that the presence of feedback is essential to understanding your code. Without their use, your computer code is likely to be difficult to understand. Comments are also some form of professionalism on the part of the programmer and a concern for quality.

If you like this post, leave a comment or share it.

About

I invite you to visit my blog for more articles and leave a comment.
Check Technologies represents more than 10 years .... In computing technologies.



My Visual Studio 

Buy Visual Studio Professional with MSDN 2012 from Amazon, cheapest you could find.





1 comment:

  1. This post help a lot.Would someone let us know if there are new features?

    ReplyDelete