Here are some frequent questions we think may help you in understanding,
using, and creating code snippets.
Q: What is a "Code Snippet"?
A: A Code Snippet is a reusable block of code. Unlike a static copy-and-paste approach, code snippets allow for dynamic instances of code by allowing placeholders into mini templates of code. Code snippets are a new feature of Visual Studio 2005.
Q: How do I use a Code Snippet?
A: In the Visual Studio 2005 code editor, you can invoke snippets with [ctrl][k][x] keyboard shortcut. IntelliSense will then display a context menu displaying the available code snippets to choose. However, most code snippets are available without using the keyboard shorcut. If you know the shortcut name of the code snippet, simply type the name and press tab to invoke.
Q: Where can I learn more about Code Snippets?
Q: Why do I download a .VSI file?
A: A .VSI file is a Visual Studio Community Content Installer format. You may have also seen this format when downloading the ASP.NET Starter Kits.
Essentially a VSI is nothing more than an archive format (may not even be compressed) with a manifest file (.vscontent) included describing the contents and their installation location.
When you double-click on a VSI file from your computer that has Visual Studio 2005 installed, the Community Content Installer will launch,
determine the content(s) of the VSI and walk through a wizard of where to put the contents. It is a much better deployment package than simply sending templates/starter kits/snippets back and forth.
|