Using Toolbox for Code Snippets in Visual Studio 2005

Just noticed today that you can drag text into the Toolbox then repeatedly drag it back out wherever you want, into a Visual Studio source window.

Simply select some text in a source window, drag it over to the Toolbox tab (assuming you have Toolbox set to Auto Hide), wait for Toolbox to expand and drop the text wherever you want it.

Now you can simply open up the Toolbox and drag-drop that text whenever you want, much like a code snippet; but much faster (and without literals).

6 thoughts on “Using Toolbox for Code Snippets in Visual Studio 2005”

  1. Is there a way to turn this off? Currently, every time I copy code snippets it automatically adds it into the toolbox. So I am looking for a way to turn it off.

    Can you help?

  2. I also have same problem, anytime i copy something, it also copy itself to the ToolBox too.

  3. “…every time I copy code snippets it automatically adds it into the toolbox…”
    I have the same problem… anyone knows how to turn it off please?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>