This is a micro optimization that I'd have in my ideal IDE - the ability to paste from the clipboard directly into the editor as a comment. The idea is sometimes I feel like I lose entire seconds to moving my hand over to the mouse, selecting what I just pasted, having involentary stress over trying to beat the red-squiggly's from appearing, and finally pressing control-K,C.
Not exactly what you're looking for, but if you paste with Ctrl + Shift + V (Cycle through the Clipboard Ring), the pasted text is already highlighted and selected for you. You can then follow that up with a Ctrl + K, C to comment it out.
Type /*
, Ctrl + V, type */
. Your hands never need to leave the keyboard.
Try SmartPaster, it's a visual studio 2005, 2008 and 2010 addon which adds paste as comment, string, stringbuilder and region to the right click menu.
You might be able to record a macro to do this. In Vs you can use the record macro functionality, you can create your own button in the menu to activate the macro.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With