mmanela / SnippetDesigner

The Snippet Designer is a plugin which enhances the Visual Studio IDE to allow a richer and more productive code snippet experience.
Apache License 2.0
344 stars 85 forks source link

New | File does not list the Code Snippet File template #26

Closed mmanela closed 10 years ago

mmanela commented 10 years ago

chila[CodePlex]
When we are trying to create a new snnipet, using the right click and choosing quotExport as Snippetquot, the Code Snippet File template does not appear.

mmanela commented 10 years ago

mmanela[CodePlex]
Fixed for VS 2008 in rev 236fad4f9427 Fixed for VS 2010 in rev ab9936b7006a

mmanela commented 10 years ago

sespark[CodePlex]
And the provided fix does not seem to work for me.

Language: VB.NET Environment Settings: General

mmanela commented 10 years ago

sespark[CodePlex]
In a web site project, not a web application, the 'Export as Snippet' from the right click context menu brings up the New Item Dialog box instead of the Snippet Designer. I have seen this in multiple site projects, while it works for me in web applications. This is for Visual Studio 2008.

Details: Visual Studio 2008 SP1 Project: Web Site File: ASPX Code Behind and App_Code Install Path: C:\Program Files\Microsoft Visual Studio 9.0\ Snippet Item not present in New Item Dialog SnippetDesigner.vsdir and SnippetFile.snippet file are present in the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\NewFileItems folder.

mmanela commented 10 years ago

world4geeks[CodePlex]
Actua;;y i was also facing the same problem.In some projects it is working and in some other it is not working.my project type was website where it is not working.Then i search and found this article helpful.

http://phanibitra.co.cc/index.php/Visual-Studio/Snippet-Designer-a-visual-Studio-Addin-Bug-Fixed.html

I followed the instructions given in that article and it solved my problem

mmanela commented 10 years ago

mmanela[CodePlex]
The dialog that screen shot shows is not where the snippet template should show up.

It shows up under File-New-File... The image you uploaded shows a different dialog, I uploaded an image of what the correct dialog looks like for me called:WORKING_File_New_File.png.

Could you answer some more questions to help me figure what is wrong.

Do you see Code Snippet File in File-New-File... dialog? What is your visual studio install path? Do you see a SnippetDesigner.vsdir file and a SnippetFile.snippet file at this path:

[Path to your vs install]\Common7\IDE\NewFileItems ?

mmanela commented 10 years ago

flow7oo[CodePlex]
I have the same issue. Any solutions yet?

mmanela commented 10 years ago

chila[CodePlex]
I can see that there is something missing between my two environments. At work, the snippet designer was launched when I decided to export a portion of code as a Snippet. It might be something missing at my home PC. See you.