Thursday, September 29, 2005

Clip Board Ring in VS.NET

I came accross an interesting and a useful features in Visual Studio.Net called Clip Board Ring.

Most of developers will use the Shortcuts Ctrl + C and Ctrl + V very often to re-use some code snippet. But pasting will work only for the last item that is stored in the click board memory or the last item I copied.

Now what if we want to reuse some set of codes snippets very often. Thats waht we are going to do using the Clip board ring. Most of us would have noticed a tab in the ToolBox called “Clip Board Ring”. 

In this tab we can organise the groups of code snippets which we want to use very often. Now Activate/Select the “Clip Board Ring” tab. Initally you will not have any items listed.

Steps to Add item to the “Clip Borad Ring“.

Step 1:  Open any coding window, I mean a HTML Editor or Class Editor, select the code snippet which you want to add to the Clip Board Ring.

Step 2: Press Ctrl + C (Same old copy shortcut) I hope everyone understands whats happening behind the scenes.

Step 3: You could see a new item called “Markup Fragment” in the Clipboard ring. Thats the default label for the code snippet you have added recently. Rename it to easily identify.

Steps to User the added item.

Its very simple. Just drag and drop what ever item you want into your editor. You could see the item getting added.

Or press Ctrl + Shift + V to iterates through the text snippets contained in the Clipboard Ring. Keep Ctrl and Shift down and press V multiple times to select the snippet you want, and then release all the buttons to have the snippet pasted in the current position.

For more information on this feature…. Please do R&D yourself…. And don’t forget to let me know if you have found anything new.

Please visit

Posted by Sadha at 06:34:55
Comments

One Response to “Clip Board Ring in VS.NET”

  1. how can you make so nice blog !

Leave a Reply