Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
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
<br />Try<br /><br />Catch ex as Exception<br /> MsgBox(Ex.ToString) 'being the extra bit<br />End Try<br />


P.S. I may have the terminology wrong.

Best regards,

Johan

Posted

1 solution

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.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900