Friday, 7 February 2014

What is IntelliSense

IntelliSense serves as an autocompletion tool as well as a quick reference for classes, methods, and many more.IntelliSense is activated the moment you type a letter in the Code Editor. Type the following code inside the Main method of the program.

System.Console.WriteLine("Welcome to Visual C# Tutorials!");
 
 

Intellisense 01

IntelliSense gives you a list of recommendations with the most relevant one on the first of the list. You can press tab to accept the selected recommendation. Typing a dot will bring you another list of recommendations. The list is based on all the components that are contained inside the preceding namespace.



Intellisense 02

If you stay the selection for a short amount of time, the description about the selected item will show up. This allows you to learn what each item does without going to the full documentation. As you type the code, the list is narrowed down. For example, typing the letter W make IntelliSense to only show items with W's in it.

Intellisense 03
Typing more letters will narrow the list even further.

Intellisense 04
When working with methods with multiple overloads(versions), you can use the arrow heads to see all the possible overloads of the method.

Intellisense 05
You will also see the different parameters required by the method and their individual descriptions. Methods and parameters will be discussed in a later lesson.
IntelliSense is such a great feature, and for every release of Visual Studio, IntelliSense becomes even more intelligent in suggesting codes for you. It is one of the time-saving tools Visual Studio offers.


No comments:

Post a Comment