Surround with a Code Snippet (C# Only)

Keyboard:  CTRL + K, CTRL + S Menu:  Edit | IntelliSense | Surround With Command:  Edit.SurroundWith Versions:  2008,2010 Published:  4/21/2010 Code:  vstipEdit0052     This is one that even people who know about snippets tend to forget.  You can actually put a snippet AROUND existing code.  Assuming you have some code selected:   Just press…

0

Sharing Snippets with Your Team

Keyboard:  CTRL + K, CTRL + BMenu:  Tools -> Code Snippets ManagerCommand:  Tools.CodeSnippetsManagerVersions:  2008,2010Published:  8/19/2010Code:  vstipTool0075   I am a big fan of snippets!  Sometimes you may want to share special snippets with your team for everyone to use.  It’s easy to do!   First, create a network directory that all the team members can…

0

Create New Code Snippets from Existing Ones

Versions:  2008,2010Published:  4/24/2010Code:  vstipTool0016   Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page!   One of the things you will want to do when you use snippets is change the default values.  Naturally, you can modify the values once the snippet is used:  …

0

Using the Code Snippets Manager

Keyboard:  CTRL + K, CTRL + BMenu:  Tools -> Code Snippets ManagerCommand:  Tools.CodeSnippetsManagerVersions:  2008,2010Published:  4/23/2010Code:  vstipTool0015     Have you used code snippets before?  Ever wonder where the heck you can get a list of them just to browse and see what is there?  Have I got a deal for you!  The Code Snippets Manager…

2

Using Code Snippets

Keyboard:  CTRL + K, CTRL + XMenu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2008,2010Published:  4/22/2010Code:  vstipEdit0053   Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page!   I thought it would be instructive to demonstrate how to use snippets.  So, let’s say you are…

2

Inserting Code Snippets

Keyboard:  CTRL + K, CTRL + XMenu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2008,2010Published:  4/20/2010Code:  vstipEdit0051   Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page!   Let’s talk about snippets.  For some reason, even though these have been around for a while, people…

2

JavaScript Code Snippets

Keyboard:  CTRL + K, CTRL + X Menu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2010Published:  2/17/2010Code:  vstipEdit19   Want to get those JavaScript functions created more quickly?  We now have support for JavaScript snippets! When you are inside any script block go to Edit -> IntelliSense -> Insert Snippet. on your menu bar (CTRL…

2

HTML Code Snippets

Keyboard:  CTRL + K, CTRL + X Menu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2010Published:  2/16/2010Code:  vstipEdit0018   You may have used code snippets for a while now but did you know we now support them for HTML?  Yes we do!  Just go into any webpage and then go to Edit -> IntelliSense ->…

2