Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Snippet Shortcuts VB.NET

I need some small information about visual studio. Presently, I am using VS 2010. When we type "ctor + tab + tab", it will create code snippet for "Constructor" if the language Visual C#. Similarly, for prop,//,etc...

But, its not the case with VB.NET language. Can you guys provide some list of shortcuts which VS(VB.NET) supports.

Thanks in advance.

like image 240
kpgu1718 Avatar asked May 20 '13 10:05

kpgu1718


People also ask

What is a code snippet example?

Code snippet: A code snippet is any example in the documentation. It shows how to use a specific member or how to accomplish a specific task. It might be a short snippet that focuses on a specific task (for example, how to cause a button to change color using the onhover event), or a longer tutorial or how-to.

How do you use a code snippet?

To insert a snippet into a code window, place the cursor where the snippet is to be inserted, right-click to display the context menu, and select Insert Snippet or type CTRL + K, then X. The Code Snippet Picker is then displayed for you to pick the desired snippet. To cancel the Code Snippet Picker, press the Esc key.

What does ctrl t'do in Visual Studio?

Ctrl + T to show class.


2 Answers

Code snippets are highly customizable code fragments intended to accomplish simple to intermediate tasks quickly; they can be inserted into your code with just a few keystrokes.

You can insert IntelliSense Code Snippets using the Code Snippet Picker or typing the shortcut name of the snippet and pressing Tab. When you know the name of the snippet you want to insert, you can do so by typing its shortcut followed by the TAB key. When you have to browse for an appropriate snippet, you can use the snippet picker, which gives you categorized lists of snippets to choose from.

like image 115
Butzke Avatar answered Oct 13 '22 12:10

Butzke


Visual Basic includes a code library consisting of several hundred pieces of code, called IntelliSense code snippets, that are ready to be inserted in your application. Each snippet performs a complete programming task such as creating a custom exception, sending an e-mail message, or drawing a circle. You can insert a snippet into your source code with a few mouse clicks. You can also create your own snippets that suit your business needs, add them to the library, and then use them when needed.

like image 21
user2820483 Avatar answered Oct 13 '22 12:10

user2820483