Another idea
24 posts
• Page 1 of 3 • 1, 2, 3
Another idea
It would be great to support 'Surround with...' snippets. Right now it shows empty list and then 'Object reference not set...'.
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Another idea
Hi, Thanks, this seems to be a bug in VS CodeSnippets manager.
Just delete following registry key
substitute 11.0 with 12.0 or 10.0 ...
VS somehow caches old path to snippets, and after updating to newer version of the extension, it does not update this value ...
Just delete following registry key
- Code: Select all
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Languages\CodeExpansions\PHP
substitute 11.0 with 12.0 or 10.0 ...
VS somehow caches old path to snippets, and after updating to newer version of the extension, it does not update this value ...
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Another idea
Actually the Path inside was incorrect (again the old generated path fivrlypx.tmo). I changed it. Does this mean that I can have 'surround with' now?
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Another idea
The key can be deleted, VS creates new one correctly.
Surround With and Insert Snippet works (with valid registry key).
Surround With and Insert Snippet works (with valid registry key).
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Another idea
Okay, it works. I added a #region snippet, but after Ctrl+K,S I get a list of folders, which is somewhat inconvenient. Can both folders be merged? Like in c#?
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Another idea
You should get list of snippets, no folders. If you get folders, your custom snippets have different category maybe. You should be able to manage all the snippets in Tools | Code Snippets Manager.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Another idea
My snippet is here: D:\Documents\Visual Studio 2012\Code Snippets\Phalanger\My Code Snippets. Which folder should I use? I copied one of your snippets and changed it.
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Another idea
Tried moving it to "PHP" instead of "Phalanger". No joy.
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Another idea
This is VS thing; I'm using Code Snippets Manager and Import snippet button.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Another idea
You choose just the snippet, not the folder, right?
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
24 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 37 guests