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
343 stars 85 forks source link

The new 2022 version can't display Code Snippet File on New File window #166

Open DesignDigits opened 2 years ago

DesignDigits commented 2 years ago

The original version works normally on my PC. Now we can only create a snippet by manually create a blank file, name it "xxx.snippet", and reopen it.

james-vanrossum-sonardyne commented 2 years ago

Ditto, this is a tad irritating. Rolled back to commit bc207443c7ebede1b2c46f2ef44db19fe1895f04 and that worked correctly.

SorenBilsoe commented 2 years ago

Would love to see the change ... Thanks

FritzHugo3 commented 2 years ago

Is it the same problem? I have installed the plugin, sometimes i get the "export as snipet" on right clicking (bevore marked a code) and sometime there is gone. And i get a complete empty new SnippetFile1.txt without anything and i cant see this window down what i can see at the picture https://raw.githubusercontent.com/mmanela/SnippetDesginer/master/images/Editor.png Only a complete empty blank site.

Or make i anything wrong? I have only see this great plugin in a YT video from 2019 and tryed out now the 2022 version. (must have and why this are not implemented in VS dam! Whats implemented are so uncomftable with xml!)

EDIT: Interesting, if i open an exist .snippet file, than there shows me the windows from the plugin. Maybe a problem that the plugin cant create a new .snippet and it stucks at the *.txt file ending.

So here a little workaround. make a new empty file in windows (or an existent other and save under a new name), named it xyz.snippets and open the file in Visual Studio. Copy youre code (copy paste) and xou caan use the other things from this plugin.

I hope it comes a fix for it.

(Tryed the original likelie xml version from the implimented snippet in VS but ist so uncomftable ^^). Why VS dont make it so like this Snippet Designer ^^ - this is not the best way! (Ok the code are not right formated here why ever). Than as a picture ^^.

grafik

default-identity commented 2 years ago

Hi, my solution this problem is: Find installed template : C:\Users\............\source\repos\Snippet Designer\src\src\SnippetDesigner\Templates\SnippetFile.snippet Insert your code into the file and save.

Copy the template here C:\Users\............\Documents\Visual Studio 2022\Code Snippets\Visual C#\My Code Snippets