How do i change the comment style used in visual studio from //
to /*...*/
?
I use the comment shortcut mostly for commenting out code temporar
ReSharper does this CTRL + SHIFT + C
Otherwise, a macro would be your best bet, add this to your VS Macros and bind it to a keyboard shortcut of your choosing:
edit: removed my crappy code, nobugz beat me.
You can do it with a macro. Make it look like this:
Public Sub CommentSelection()
If Not DTE.ActiveDocument.Selection.IsEmpty Then
DTE.ActiveDocument.Selection.Text = "/* " + DTE.ActiveDocument.Selection.Text + " */"
End If
End Sub
Bind it to a key other than Ctrl-K+C, you'll want to keep that one around.