Code completion in VS 2008 Express
-
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 TryP.S. I may have the terminology wrong. Best regards, Johan
My advice is free, and you may get what you paid for.
-
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 TryP.S. I may have the terminology wrong. Best regards, Johan
My advice is free, and you may get what you paid for.
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
-
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
Hi Simon, Thanks for your help, that did exactly the trick ! Johan
My advice is free, and you may get what you paid for.