KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In VS C++ code, if i haven't selected anything or full line selected and press comment selection (Ctrl+K + Ctrl+C) then it will comment the whole line with // int x = 5; After Pressing Ctrl+K + Ctrl+C without anything selected or full line selected. // int x = 5; Now if I select some part of the line and press comments button again only selected text will be commented (bold means selected) int x = 5 ; After Pressing Ctrl+K + Ctrl+C with x = 5 selected. int /*x = 5*/; Incase of multiple lines int x = 5; int y = 2; int z = x * 5; And after comments shortcut int/* x = 5; int y = 2; int z =*/ x * 5; What I want //int x = 5; //int y = 2; //int z = x * y; Now this is what I don't like. Usually I select multiple lines and press comments button. This will comment only the selected characters , but I want all selected lines tobe commented. Is there anyway to do that any extension or from visual studio settings I can change that?
Tags (comma-separated)
Save Edits
Cancel