Monday, December 28, 2015

Comment Widgets for Selection

Visual Smarter provides many selection widgets, as shown before. We are going to introduce the comment widgets here.

If there is some code as follows somewhere:

        private void CommentTester()
        {
            int i;
            string hello = "hello world.";
        }

  it's selected, and the Comment widget is called up, the code will become:

//        private void CommentTester()
//        {
//            int i;
//            string hello = "hello world.";
//        }

If the UnComment widget is called up at this moment, the current code will be rolled back to the original.
If the Toggle Comment Type widget were clicked instead, the code would become:

/*        private void CommentTester()
        {
            int i;
            string hello = "hello world.";
        }*/

If the Add Comment to Line End is run against the original code, each line will be appended some comment beginners.

        private void CommentTester() //
        { //
            int i; //
            string hello = "hello world."; //
        } //

No comments:

Post a Comment