Lisa Feigenbaum - Code Snippets in Visual Studio
- Posted: Oct 14, 2005 at 1:48 AM
- 77,595 Views
- 18 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Can't wait for RTM now
Is the title of this this video wrong?
Feingold or Feigenbaum?
She's very pretty though
Cheers,
Clint
B
Edit: I guess I can add other directories, just cant edit the prebuilt ones.
The defaults are stored there, but there is a folder in "My Documents/Visual Studio 2005" where you can put your own.
Tools -> Code Snippets Manager is a good place to look, to find out where any of your registered snippet directories are located. It is true that the snippet files installed with the product are located in Program Files. The directory we provide for creating your own is located at My Documents\Visual Studio 2005\Code Snippets\Visual Basic\My Code Snippets.
However, there is no restriction on where a snippet directory must lie in order to use it. You can always use the Add/Remove buttons in the Code Snippets Manager to control which folders show up in the IDE.
Hi XiXora,
"Feigenbaum" is correct.
Thanks,
Lisa
It is true that there are some VS.NET 2003 add-ins that help provide code for various tasks. However, these 2003 code snippets do not contain the same functionality as the feature in VS2005. I demonstrated a few of these enhancements in the video: replacement fields with intellisense and tooltip instructions, automatic imports statements, and automatic references.
Here are some links for the sites mentioned in the video:
Code Snippets FAQ: Learn a lot of good information in this FAQ.
VB IDE Forum: Post your own questions about snippets here!
VB IDE blog: For tips & tricks about snippets.
MSDN download page: Additional snippets will later be posted here.
Most Wanted Page: Go request a snippet you'd like to see!
The Snippet Editor: A tool to help edit and create your own code snippets.
http://www.gotdotnet.com/workspaces/workspace.aspx?id=6b1aceda-e613-4dac-beeb-0cd8ad8f2d41">Community Power Toys: Tools to help turn your .snippet file into a .vsi (so that it can be downloaded with the standard Visual Studio Installer). Also contains a template to help create your own snippet hosting site.
Current Snippet Hosting Sites: Go post your snippets on one of these sites, so that they can be shared with the community...
http://www.projectdistributor.net/">http://www.projectdistributor.net
http://www.gotdotnet.com/">http://www.gotdotnet.com
http://dotnetjunkies.com/">http://dotnetjunkies.com
http://www.gotcodesnippets.com/">http://www.gotcodesnippets.com
I am very impressed overall with the new offerings! Keep it up!
- Adam
In the IDE where people can see different Snipipets available (Tools --> Code Snippet Manager) on the machine, can you provide "FIle Open with Notepad / IE / XML Tool Editor", that way people do not have to grab the path & open the file using win explorer.
I wanted this, to ensure coding practices are defined @ ORG level thru snippet manager
My.Computer.Audio.Play("C:\Documents and Settings\Douglas Allen\My Documents\Visual Studio 2005\Projects\VB\codesnippets\codesnippets\ringout.wav", AudioPlayMode.WaitToComplete)
[6]wow, I didn't no these were there even. TNX Lisa.
I need help using resources and getting the files to go with my projects when I deploy or should I say "publish" them. Even some samples like the card game do the same thing. I get an error when I publish it. resx on man.
Just one more comment: It would be great if most of these would use a screen cam like the screencasts and the learning videos. Not that I mind looking at Lisa of course.
Goals:
(1) easily update all our current developer desks, and new developer desks, to include a shared snippet folder on a server
(2) easily add new snippet subfolders and snippets to the shared folder such that they automatically show up the next time a developer selects the shared snippet folder, without running some kind of per-workstation update to see the new snippets
Thanks!
ps - Also still looking for MS to (1) implement preview so developers can see what is going to be added, before actually inserting the snippet, and (2) fix HelpURL so that it actually works to link to related instructions if provided
Remove this comment
Remove this thread
close