Visual Studio Tooltips unplugged: Drag and Drop code artifacts to Toolbox General Tab.

Friday, September 12, 2008 by kapitanov | Comments 1

I bet you never thought about this feature! Me either…

It’s good that there is a marvelous blog about all goodies in VS maintained by a nice lady.

I will be monitoring and making comments on the topics there that have excited me most.

So what is on today’s menu? As you’ve probably figured it out already, I will comment on a fine (but unknown to me) feature of dragging and pasting code artifacts straight to the VS toolbox. At first I was a little bit skeptic, but it really worked out, let me show you how:

selecting

1. Mark a code segment in the code editor

generalTab

2. Drag the selected code to the General Tab of the Toolbox

generalTabDragged

3. You will end up with a toolbox item that represents the code snippet.

generalTabPaste

4. Drag back to the code editor, or double click to insert at the cursors position.

Yes, that was it really :) All worked as expected.

1 Comments

  • markus 13 Sep 2008
    really great tip, but where all those codes will be stored ? i mean if i uninstall VS or format my machine where i can backup those codes in toolbox ?

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)