RSS

Tag Archives: Visual studio Toolbox code

Visual Studio IDE Tips & tricks: shortcuts to code snippets Adding frequently used code to toolbarVisual Studio IDE Tips & tricks:

Storing Often-Used Code in the Toolbox

If there is some often-used code and templates that you repeatedly have to use across various code behinds what would you usually do ?
Copy that code snippet somewhere , say … in notepad or something and everytime you need it you will simply copy it back into the code behind. Well thats the most obvious thing to do, but did you know that VS IDE allows us to store code snippets into the toolbar for later use??

HowTO : – Simply drag and drop your code straight onto one of the toolbox tabs, such as the General tab or create your own tab . When you need to use it again, simply drag and drop back into your code window.These code snippets will persist there across projects.Hence making our job easier.

 

Tags: , , , ,