It’s tip day. Not like this will be a regular thing, but I found these two items handy.
First is creating snippets for VS 2010. You know, of course, that you can right click inside the editor window of Visual Studio and select Insert Snippet to easily insert all kinds of goodness into your code.
You can also create your own snippets if you find yourself writing the same type of code over and over again. I found a concise tutorial on http://www.visualstudiotutor.com/2010/02/create-snippet-visual-studio-2010/ on just how to do this.
In a similar vein of improving development, you can also drag and drop text from the editor window onto the Toolbox. Once there, you can easily drag that code from the Toolbox and into your code.
First, pin the Toolbox so it’s open, then expand the General tab. Then, just highlight the section of code you previously added and drag it onto the General section.
And you can also rename those sections of code dragged onto the Toolbox by right clicking on the code block and selecting Rename. I would suggest doing that, because otherwise it looks ugly and semi-indecipherable.
I found dotnetslackers.com has a visual version of what I just wrote, if you’d like some screenshots. It’s very easy, and especially useful if you are going to give a presentation or lunch and learn.