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."; //
        } //

Replicate Line Multiple Times & Add Line Number to Line Start Selection Widgets

Visual Smarter provides many selection widgets, as shown before. We are going to introduce the Replicate Line Multiple Times and the Add Line Number to Line Start widgets here.

If there is some code as follows somewhere:

            List<int> intList = new List<int>();
            intList.Add(1);

  the last line is selected, and the Replicate Line Multiple Times widget is called up, a number is input such as 10, then the code will become like this:

            List<int> intList = new List<int>();
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);
            intList.Add(1);

If the ten adding lines are selected and the Add Line Number to Line Start widget is called, the line labels will be added accordingly:

            List<int> intList = new List<int>();
Line_1:             intList.Add(1);
Line_2:             intList.Add(1);
Line_3:             intList.Add(1);
Line_4:             intList.Add(1);
Line_5:             intList.Add(1);
Line_6:             intList.Add(1);
Line_7:             intList.Add(1);
Line_8:             intList.Add(1);
Line_9:             intList.Add(1);
Line_10:             intList.Add(1);

Saturday, December 26, 2015

Visual Smarter Selection Widgets

Visual Smarter provides many selection widgets, as follows:



























They operate on the active selection in the current document, source file.

Friday, December 25, 2015

Visual Smarter Toolbar

The Visual Smarter toolbar looks as follows:





It is a single toolbar at present, but it's composed of two parts actually, Common Utilities and Widgets. We have separated the two sets of toolbar buttons/menus above to make them look both nicer and more meaningful.

Most of these utilities and widgets were mentioned a bit before; some were introduced with descriptions and code or UI examples. More and more will be coming, please stay tuned.

Various Web Searchers & Navigators of Visual Smarter

Visual Smarter provides various Web Searchers and Navigators. Those Web Searchers will open the default web browser and finds the web pages having the keyword as input. Those Web Navigators will navigate to the web pages inside the Visual Studio IDE.

Many search engines and web sites are supported. Here are the list:
  • Google
  • Bing
  • MSDN
  • Yahoo
  • SpiderInNet
  • SpiderInNet1
  • SpiderInNet2
  • VisualSmarter
  • CodeProject
  • NuGet
  • GitHub
  • StackOverflow

Thursday, December 24, 2015

Code Refactors: There Are More

There are more code refactors and they are also self-explanatory. Here they are:
  • CodeLine Replicator
  • IfElseifElse Coder
  • TryCatchFinally Coder

  • Capitalize CurrentLineOfCode
  • Lowercase CurrentLineOfCode
  • UpperCase CurrentLineOfCode

FREE Download and Try Visual Smarter 2015


Wednesday, December 23, 2015

Code Refactors: Insert Various Time Format

Its feature is pretty self-explanatory, inserting a time string with every possible format into the code position of the current cursor.

The various time format looks like the following: