Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DesignDigits opened this issue May 8, 2022 · 4 comments

Comments

@DesignDigits
Copy link

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.

@Pejaiii
Copy link

Pejaiii commented May 17, 2022

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

@SorenBilsoe
Copy link

Would love to see the change ... Thanks

@FritzHugo3
Copy link

FritzHugo3 commented Jun 1, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants