Visual Studio (2005,2008,2010) Tips and Tricks.
#63 Copy Paste Parameter Info from the Tooltip
Wednesday, March 11 2009
Intellisence is great. It shows us a lot, and mostly at the perfect time. When parameter info is being displayed in a tooltip, did you know you can copy or paste this information? This video trick shows you how.
Snippets / Notes:
[CTRL]+[ALT]+[SHIFT]+[P] Paste the default parameter names directly into the function.
[CTRL]+[ALT]+[SHIFT]+[C] Copy the info for some other line (see the commented line in the picture. Copying the parameter info will put the function name and all parameter information onto the clipboard.)
Visual Studio Tip / Trick #063 English Transcription:
Today's Visual studio video trick of the day is trick No. 63 which is a special copy and paste functionality. I have confirmed this works both in Visual studio 2005, 2008 as well as visual basic and C-Sharp. The tip is coping and pasting from the tooltip. So Let’s just type something like Controls dot (.) and if I start typing AddAt you will see underneath my parameter list I have a popup. Now this text that’s here void control collection dot (.) AddAt intindex, Child Control. You can copy that text, the key board combination for that is [CTRL]+[ALT],[SHIFT],[C] so just like [CTRL]+[C] for the copy but with the [ALT] [SHIFT] stuck in the middle. So lets try it [CTRL]+[ALT],[SHIFT],[C] and then I can actually get rid of this line and watch what happens if I just paste it in a comment now. You can see that that’s been added to (let’s go full screen) you can see that that’s been added to my clipboard. Alternatively you can do a paste while that is being displayed so this is particularly for the popup on your parameters list if you just like to paste the default parameter information you can do a [CTRL]+[ALT],[SHIFT],[P] and it will copy and put that stuff right in for you. Now you have to go and make some changes depending on where and why you wanna use that paste. But its actually works in quite a few places though have you see that parameter list popup [CTRL]+[ALT],[SHIFT],[C] copies to the clip board [CTRL]+[ALT],[SHIFT],[P] does an immediate paste of those default parameters. We'll see ya on trick No. 64.
2 comment(s)
that is very cool! i love the Paste one. that'll make it easier sometimes instead of always waiting for the popup.
Awesome trick :) thanks. Keep it coming..