PC Review


Reply
Thread Tools Rate Thread

Code Snippet Not Working

 
 
daokfella
Guest
Posts: n/a
 
      16th Feb 2007
Hi all,

I've created a code snippet in VS 2005 and saved it in the proper
snippet folder. When I right-click and select Insert Snippet, I
navigation to My Code Snippets and it shows my snippet. However, when
I click my snippet, nothing happens. Has anybody else experienced
this? Inserting the supplied snippets works just fine. However, no
snippet I create works even though it can be selected as a snippet
from the intellisense.

Jason

 
Reply With Quote
 
 
 
 
William LaMartin
Guest
Posts: n/a
 
      17th Feb 2007
I find that I need to double-click on the snippet (both mine and the
supplied ones) to get it to insert. Are you only single-clicking? A
single-click just gets the description.

"daokfella" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I've created a code snippet in VS 2005 and saved it in the proper
> snippet folder. When I right-click and select Insert Snippet, I
> navigation to My Code Snippets and it shows my snippet. However, when
> I click my snippet, nothing happens. Has anybody else experienced
> this? Inserting the supplied snippets works just fine. However, no
> snippet I create works even though it can be selected as a snippet
> from the intellisense.
>
> Jason
>



 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      20th Feb 2007
This is true, you must double-click on the snippt.

You can also attach a "shortcut" to your snippet. This is easy to do if you
are using the Snippet Editor. You can see the shortcuts when you are
displaying the snippets, and you can click once on one, and look at the
tooltip.

So what good is the shortcut, you ask? If you type in the shortcut and hit
tab in the code window, it will put in your snippet.

For example, for a read-only property, it's "propread". Type propread and
<tab> and it will put in the read-only property snippet. Pretty cool if you
ask me.

You can also bring up the snippet menu by typing ? and tab in the code
window.

Snippets are cooool. Good luck.

Robin S.
--------------------------------------
"William LaMartin" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I find that I need to double-click on the snippet (both mine and the
>supplied ones) to get it to insert. Are you only single-clicking? A
>single-click just gets the description.
>
> "daokfella" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi all,
>>
>> I've created a code snippet in VS 2005 and saved it in the proper
>> snippet folder. When I right-click and select Insert Snippet, I
>> navigation to My Code Snippets and it shows my snippet. However, when
>> I click my snippet, nothing happens. Has anybody else experienced
>> this? Inserting the supplied snippets works just fine. However, no
>> snippet I create works even though it can be selected as a snippet
>> from the intellisense.
>>
>> Jason
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Help-Intellisense (Code Snippet) Tab Tab does not insert code (VS2008) Jeff Johnson Microsoft C# .NET 0 12th Jul 2010 10:37 PM
Code snippet not working Paulo Microsoft ASP .NET 1 11th Feb 2009 08:44 PM
Code snippet tshad Microsoft C# .NET 3 22nd Oct 2008 05:13 PM
Code Snippet Add-In?? Don Microsoft VB .NET 3 24th Sep 2003 09:24 AM
Re: code snippet help please Junior Microsoft Access Form Coding 0 7th Jul 2003 02:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.