Thursday, January 20, 2011

Code snippets in Toolbox

This is pretty useful tip for developers. In Visual Studion 2005 and later, you can drag text from source window onto Toolbox and drag it back wherever and whenever you want.

1. Select the text in source window
2. Drag the selection onto Toolbox tab (assuming it is expanded)
3. You will see a new item in the Toolbox

4. You can 'Rename item' on right click.


This is a very useful tip for those who frequently use some definite code pieces.

Hope this helps.

No comments:

Post a Comment