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

04 Jan

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: , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: