Tuesday, August 20, 2013

Tip 5.14: You can drag and drop code onto the Toolbox's General tab

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip is especially helpful if you are going to write code in a presentation. Instead of having to type code in front of everyone, you can have it all typed up on the side, ready to go! You've probably noticed the Toolbox General tab showing this information by default.

VSTip5140

Probably one of the best-kept secrets is that you can actually drag and drop code onto the Toolbox. Just highlight some text and then Click+Drag and that text into the General tab. You'll see the following:

VSTip5140a

But it gets better. You can actually drag code to any tab on the Toolbox, including user-created tabs. Note that you may need to select Show All on the Toolbox context menu to display additional tabs so that you can drag the code onto the tab. But after that, the tab will appear whenever you can insert code.

VSTip5140b

Happy Programming! =)
Posted by Nils-Holger at 12:12 PM with 0 comments.
Add Your Comment





*