Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio /**/ comment shortcut?

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

like image 572
Zia Khattak Avatar asked Sep 06 '15 17:09

Zia Khattak


People also ask

How do I change the comment shortcut in Visual Studio?

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.

What is the shortcut key of COPY * 1 point?

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.


1 Answers

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 
like image 111
Suza Avatar answered Oct 05 '22 16:10

Suza