Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Code completion in VS 2008 Express

Code completion in VS 2008 Express

Scheduled Pinned Locked Moved Visual Studio
visual-studiotutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johan Hakkesteegt
    wrote on last edited by
    #1

    Hi, Does anyone know whether it is possible to edit or add "entries" in the code completion functionality in VS 2008 Express editions ? In other words, for example, now when I type "Try" and press tab the whole try catch statement is written ready for me, but I would like to have vs write

    Try

    Catch ex as Exception
    MsgBox(Ex.ToString) 'being the extra bit
    End Try

    P.S. I may have the terminology wrong. Best regards, Johan

    My advice is free, and you may get what you paid for.

    S 1 Reply Last reply
    0
    • J Johan Hakkesteegt

      Hi, Does anyone know whether it is possible to edit or add "entries" in the code completion functionality in VS 2008 Express editions ? In other words, for example, now when I type "Try" and press tab the whole try catch statement is written ready for me, but I would like to have vs write

      Try

      Catch ex as Exception
      MsgBox(Ex.ToString) 'being the extra bit
      End Try

      P.S. I may have the terminology wrong. Best regards, Johan

      My advice is free, and you may get what you paid for.

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      They are called "code snippets". Not sure about VS express, but look under tools->code snippet manager. If it's not there, try right click on the toolbar ->customise-commands tab->tools category->"code snippets manager" command, and drag it into what ever menu you want. If you can't find it, I'm assuming VS express doesn't support it. Look in these folders: "My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets\" "C:\Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Visual C#" Copy from the main ones supplied with VS, and place your modified one in the my code snippets folder.

      Simon

      J 1 Reply Last reply
      0
      • S Simon P Stevens

        They are called "code snippets". Not sure about VS express, but look under tools->code snippet manager. If it's not there, try right click on the toolbar ->customise-commands tab->tools category->"code snippets manager" command, and drag it into what ever menu you want. If you can't find it, I'm assuming VS express doesn't support it. Look in these folders: "My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets\" "C:\Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Visual C#" Copy from the main ones supplied with VS, and place your modified one in the my code snippets folder.

        Simon

        J Offline
        J Offline
        Johan Hakkesteegt
        wrote on last edited by
        #3

        Hi Simon, Thanks for your help, that did exactly the trick ! Johan

        My advice is free, and you may get what you paid for.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups