I want to know how to put the /**/ comments through shortcut. I know the Ctrl+K+C shortcut for the // comments but it comments the whole line. Sometimes while debugging, I want to do something like "ref string /* char[] */ lengthValue" while trying something out.
I want to be able to comment a specific part of a line (not the whole line) through a shortcut e.g in "string /* char[] */ lengthValue" i-e comment out only a specific part of a like by shortcut
I am using Visual Studio 2013
Please help
In Show commands containing , search for and select Edit. ToggleLineComments . Click the Press shortcut keys box and press ctrl + / . Click Assign to assign the new hotkey.
Select the text you want to copy and press Ctrl+C. Place your cursor where you want to paste the copied text and press Ctrl+V.
Visual studio comment shortcut key: Accept in HTML, C#, JS, CSS etc in Visual studio.
Ctrl + k then Ctrl + c
//a //b //c to undo ctrl + k then Ctrl + u
a b c Ctrl + Shift + /
/*a b c*/ to undo Ctrl + Shift + /
a b c
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