So I wanted to see what snippets I could start using in VS 2010, and realized there was no way to browse the built-in snippet collections. What??
Snippet Designer to the rescue. Not only does it allow you to create new snippets on the fly from your code, but it also includes a much-needed Snippet Explorer, to browse what snippets are currently available.
It was like a soothing salve applied directly to my brain. Thanks!
I'm using Visual Studio 2012 Update 2 version 4.5.50709.
By default, the snippet folder it is watching for My Code Snippets is at:
C:\Users\<USERNAME>\Documents\Visual Studio 11\Code Snippets\SQL_SSDT\My Code Snippets
(It is using SQL_SSDT rather than SQL as part of the folder name)
Also, if you view the XML of the snippet created by Snippet Designer, it is showing Code Language="sql" rather than Code Language="SQL_SSDT". If you manually change a saved snippet to "SQL_SSDT" (and make sure the snippet is in a folder watched by VS) it shows up in the list of SQL snippets.
If you can make these 2 changes then SQL snippets should work in VS 2012. Thanks!
I read VS 2012 Express RC is supported, but now I have tried installing it into actual VS 2012 Express (no RC) and got this:
Microsoft Visual Studio Express 2012 for Windows 8
Microsoft Visual Studio Express 2012 for Windows Desktop
VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
Am I doing something wrong, or has there been some change in VS from RC to official release?
When I go to add a new file, the Snippet designer template is not shown. This is the only extension I installed other than the NuGet Package manager update. I'on Windows 64 bit, VS 2012, in a website project.
I have installed snipped designer but when i try to export the snipped code changes, (Via Export snipped option),its doesn't open the file in usual .snippet format. Tool asks me to provide a extension for the file to be saved.I have tried even simple thing like console.Readline()( just to avoid any code mistakes) but nothing works. Any idea what might be wrong ?
Some more information might help me.
1. Visual Studio Version
2. What project type where you in (Website, Web Application, Console App,... etc)?
3. What other extensions do you have installed?
4. What language is your VS in (e.g. english)?
Can you please add some light how snipets explorer finds snipets files. Is it from the settings of Snippets Manager? Because it does't seems to me so. If only I have broken paths or so. Thanks. Regards.
Many thanks for nice tool.
Thanks again. There is some collection in Tools/Options and then 'Snippet Designer', 'General Options' and then 'Snippet Index Location'. It seems like it adds these paths to default. Isn't it?
And aka tip - if snippet is not "working" check if xml document is valid with some redactor (notepad++).
In the options menu there is an open called IndexedSnippetDirectories. These are additional directories you can have the Snippet Explorer index in addition to the default directories. The default directories are the ones which Visual Studio is configured out of the box to use for snippets.
I'm kind of embarrased to ask this, but I have not been able to google my way out of it: How do you install this addin in Visual Studio 2008? I've downloaded the .vsix file, but double clicking on it does nothing.
Coming to this page from Tools > Find More Extensions in VS just lets me download the .vsix...
The download from this site only contains the Visual Studio 2010 version of the Snippet Designer. For the 2008 version visit this page: http://snippetdesigner.codeplex.com/releases/view/43862 and download SnippetDesignerFor2008