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).
The other benefit is that this works in Visual C++, where Snippets don’t.
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?
I also have same problem, anytime i copy something, it also copy itself to the ToolBox too.
nice feature, i was looking for this…
“…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?
This doesn’t seem to work for .sql files. Any suggestions?