Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a code snippet and add it to the Snippet intellisense in Visual Studio?

I'm curious if this is even possible.

like image 328
Sergio Tapia Avatar asked Aug 22 '09 01:08

Sergio Tapia


People also ask

How do I add IntelliSense code to Visual Studio?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript). Tip: The suggestions widget supports CamelCase filtering, meaning you can type the letters which are upper cased in a method name to limit the suggestions.

How do I add a code to snippet in Visual Studio?

With a code file open in the editor, choose Snippets > Insert Snippet from the right-click menu, then My Code Snippets. You should see a snippet named Square Root. Double-click it. The snippet code is inserted in the code file.

How do I show IntelliSense in Visual Studio?

The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .


2 Answers

Yes it is possible: Here's a link showing how to do it: http://en.csharp-online.net/Visual_Studio_Code_Snippets%E2%80%94Creating_Snippets_Manually

Here's the official page on MSDN: http://msdn.microsoft.com/en-us/library/ms165392(VS.80).aspx

like image 197
Alfred Myers Avatar answered Sep 24 '22 17:09

Alfred Myers


Sure, I use this tool.

http://www.codeplex.com/SnippetEditor

like image 20
Steve Avatar answered Sep 23 '22 17:09

Steve