scobleizer

Lisa Feigenbaum - Code Snippets in Visual Studio

Download this episode

Download Video

Description

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

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • XiXora
      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
    • wacko
      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
    • Denton
      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
    • clintsinger
      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
    • dantheman82
      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.
    • V01D
      Man, this almost makes me wanna start programming in VB instead of C#.... because... of... the..... code... snippets...  Code snippets.  Yep, thats why =P
    • badriram
      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.
    • gdesroches
      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.
    • LisaF
      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.
    • LisaF
      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
    • LisaF
      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.
    • LisaF

      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

    • ajlea2k
      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
    • prabhupr

      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.

    • prabhupr
      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
    • prabhupr
      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
    • VOE
      :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.

    • noeldp
      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

    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.