|
-
Oct 23rd, 2008, 08:18 AM
#1
Thread Starter
Addicted Member
[2005] Code Snippets - application level
I'd like to make a few code snippets that come up only in a certain solution or project (even better). I don't want to spam myself with code snippets globally that are only relevant to a project, but are used very often in that project/solution.
Is this possible? How?
-
Oct 23rd, 2008, 08:29 AM
#2
Re: [2005] Code Snippets - application level
Spam yourself with code snippets? Assign a shortcut to your code snippets and then you insert them using that shortcut. For instance, I created code snippets for the MessageBox.Show method with 1, 2, 3 and 4 parameters. I used the shortcuts mb1, mb2, mb3 and mb4. I just typed those characters and hit Tab and shazzam!
-
Oct 23rd, 2008, 08:30 AM
#3
Thread Starter
Addicted Member
Re: [2005] Code Snippets - application level
certainly, and for my global shortcuts I do memorize the shortcut, but for indexing purposes when I want to look at my snippets in the ctrl k+ctrl x menuing system...
can I mark a namespace under mysnippets for all the snippets in a particular project or something like that?
-
Oct 23rd, 2008, 08:34 AM
#4
Re: [2005] Code Snippets - application level
As you can see, Ctrl+K, Ctrl+X does list snippets as a hierarchical tree. You can add branches to that tree for specific projects if you want. There's no way to limit snippets to a specific project but you simply wouldn't expand that branch in other projects.
-
Oct 23rd, 2008, 08:36 AM
#5
Thread Starter
Addicted Member
Re: [2005] Code Snippets - application level
would I add the branches using folders or a namespace tag in XML? that would be an acceptable solution for what I'm aiming for.
-
Oct 23rd, 2008, 08:39 AM
#6
Re: [2005] Code Snippets - application level
I actually haven't used the code snippet editor for quite a while so I can't recall all the details but isn't the tree on the left hand side of the window and you just select the branch you want to add to?
-
Oct 23rd, 2008, 08:39 AM
#7
Thread Starter
Addicted Member
Re: [2005] Code Snippets - application level
I couldn't find a working code snippet editor, I've been doing all my editing by hand.
-
Oct 23rd, 2008, 08:41 AM
#8
Re: [2005] Code Snippets - application level
-
Oct 23rd, 2008, 08:44 AM
#9
Re: [2005] Code Snippets - application level
Here's a tutorial. I think it's the one I used many moons ago.
http://www.windowsdevcenter.com/pub/...r-vb-2005.html
-
Oct 24th, 2008, 12:30 PM
#10
Thread Starter
Addicted Member
Re: [2005] Code Snippets - application level
I found that link, and the snippdog link yesterday. When I try to run that it says Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|