Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Lisa Feigenbaum - Code Snippets in Visual Studio

Download

Right click “Save as…”

Ken Levy takes his camcorder over to interview Lisa Feigenbaum and get a look at the new Code Snippets feature in Visual Studio.

Tags:

Follow the Discussion

  • This code snippet thing will make me a very lazy programmer. Excellent!

    Can't wait for RTM now Smiley


    Is the title of this this video wrong?
    Feingold or Feigenbaum?

    She's very pretty though Wink
  • Ken much better video good stuff here, I like how your videos are longer and really get into the meat of the topic. I also like how you always have that flat panel monitor right there so its easy for us to see. Much better, I liked how you aksed more questions Smiley
  • Didn't learn much about code snipets, was to busy looking at the presenter. If thats what they look like at MS, how do I get a job??

    Perplexed
  • Looking through the Snippet Manager in VS2005 Beta 2 I noticed that the VB collection is extremely rich but there are hardly any for C#.  Is there a movement to make a rich collection of snippets for C# as well?

    Cheers,
    Clint
  • code snippets are not hard to add as an add-in to VS.NET 2003.  This is definitely not a compelling feature of VS2005 to focus on.  I know of a couple of add-ins out there that already do this.  I can't wait until the release of VS2005 and the code snippets backported for VS.NET 2003 use.
  • V01DV01D But if I wanted to, I could stop bullets, right?
    Man, this almost makes me wanna start programming in VB instead of C#.... because... of... the..... code... snippets...  Code snippets.  Yep, thats why =P
  • The code snippets look cool, but does anyone know if the snippets are actually stored in Program Files, and if you have to be an admin to add Code snippets. Cause that would be annoying.

    B

    Edit: I guess I can add other directories, just cant edit the prebuilt ones.
  • badriram wrote:
    The code snippets look cool, but does anyone know if the snippets are actually stored in Program Files, and if you have to be an admin to add Code snippets. Cause that would be annoying.

    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.
  • gdesroches wrote:
    badriram wrote: The code snippets look cool, but does anyone know if the snippets are actually stored in Program Files, and if you have to be an admin to add Code snippets. Cause that would be annoying.

    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.
  • XiXora wrote:
    This code snippet thing will make me a very lazy programmer. Excellent!

    Can't wait for RTM now


    Is the title of this this video wrong?
    Feingold or Feigenbaum?

    She's very pretty though

    Hi XiXora,

    "Feigenbaum" is correct.

    Thanks,
    Lisa
  • dantheman82 wrote:
    code snippets are not hard to add as an add-in to VS.NET 2003.  This is definitely not a compelling feature of VS2005 to focus on.  I know of a couple of add-ins out there that already do this.  I can't wait until the release of VS2005 and the code snippets backported for VS.NET 2003 use.

    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

  • ajlea2kajlea2k Hey There...
    Code snippets have proven to be implemeted quite well in Visual Studio 2005, I am very pleased Big Smile

    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.

  • Is there anyway to configure so that all Devs use snippet from a centralized location, so that each need not manage their own library, something like ORG-wide snippets and user preference snippets

    I wanted this, to ensure coding practices are defined @ ORG level thru snippet manager
  • Are they any tools available (out of the Box) to add new snippets using a UI interface rather than opening the XML file & editing it
  • VOEVOE Vroom!
    :OC:\Documents and Settings\Douglas Allen\My Documents\Visual Studio 2005\Projects\VB\codesnippets\codesnippets\DRAT.WAV

    Wink

    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.

  • I'm still looking for an answer re adding a snippet folder at a shared server location.  
     
    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

Comments Closed

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.