Mac Visual Code Studio Shortcut For Commenting Out
“CTR+K,C” for commenting “CTR+K,U” for uncommenting shortcuts are NOT useful, easier to click a button on a toolbar instead. Every developer comment / uncomment pieces of code quite often. News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine. Remember to check out /r/unity2D for any 2D specific questions and conversation! Download Latest Unity. Rules and Wiki. Please refer to our Wiki before posting! This keyboard shortcut is new in Visual Studio 2013. If you put the cursor on a line of code and use the Alt+Up Arrow keys, the line of code you've selected moves up. If you use the Alt+Down Arrow keys, the line of code selected moves down.
F1 Show Command Palette | |
Quick Open, Go to File | |
New window/instance | |
Close window/instance | |
User Settings | |
Keyboard Shortcuts |
Cut line (empty selection) | |
Copy line (empty selection) | |
Move line up/down | |
Copy line up / down | |
Insert line below | |
Insert line above | |
Jump to matching bracket | |
Indent/outdent line | |
| or | |
Go to beginning of line | |
Go to end of line | |
Go to beginning of file | |
Go to end of file | |
Scroll line up/down | |
Scroll page up | |
Scroll page down | |
Fold (collapse) region | |
Unfold (uncollapse) region | |
Fold (collapse) all subregions | |
Unfold (uncollapse) all subregions | |
Fold (collapse) all regions | |
Unfold (uncollapse) all regions | |
Add line comment | |
Remove line comment | |
Toggle line comment | |
Toggle block comment | |
Toggle word wrap |
Show all symbols | |
Go to line | |
Go to file | |
Go to symbol | |
Show Problems panel | |
Go to next error or warning | |
Go to previous error or warning | |
Navigate editor group history | |
Go back | |
Go forward | |
Toggle Tab moves focus |
Find | |
Replace | |
Find next | |
Find previous | |
Select all occurences of Find match | |
Add selection to next Find match | |
Move last selection to next Find match |
Insert cursor | |
Insert cursor above / below | |
Undo last cursor operation | |
Insert cursor at end of each line selected | |
Select current line | |
Select all occurrences of current selection | |
Select all occurrences of current word | |
Expand selection | |
Shrink selection | |
Column (box) selection | |
Column (box) selection left/right | |
Column (box) selection page up | |
Column (box) selection page down |

Trigger suggestion | |
Trigger parameter hints | |
Format document | |
Format selection | |
Go to Definition | |
Peek Definition | |
12 Open Definition to the side | |
Quick Fix | |
Show References | |
Rename Symbol | |
Trim trailing whitespace | |
M Change file language |
Close editor | |
F Close folder | |
Split editor | |
Focus into first group | |
Focus into second group | |
Focus into third group | |
Focus into previous/next editor group | |
Move editor left | |
Move editor right | |
ht Move active editor group |

New File | |
Open File | |
Save | |
Save As | |
Save All | |
Close | |
Close All | |
Reopen closed editor | |
er Keep preview mode editor open | |
Open next | |
Open previous | |
P Copy path of active file | |
R Reveal active file in Explorer | |
O Show active file in new window/instance |
Toggle full screen | |
Toggle editor layout (horizontal/vertical) | |
Zoom in | |
Zoom out | |
Toggle Sidebar visibility | |
Show Explorer / Toggle focus | |
Show Search | |
Show Source Control | |
Show Debug | |
Show Extensions | |
Replace in files | |
Toggle Search details | |
Show Output panel | |
Open Markdown preview | |
V Open Markdown preview to the side | |
Z Zen Mode (Esc Esc to exit) |
Toggle breakpoint | |
Start/Continue | |
Stop | |
Step into | |
Step out | |
Step over | |
Show hover |
Show integrated terminal | |
Create new terminal | |
Copy selection | |
Scroll up/down | |
Scroll page up | |
Scroll page down | |
Scroll to top | |
Scroll to bottom |
Commenting code is great. We all do it, all day long. Commonly I’ll see the following done to comment multiple lines of C# code.
[HOME],[/],[/],[UP],[HOME],<Repeat />
This just takes too long. It’s too many keystrokes. This Quick 2 minute video shows you all about commenting, and uncommenting, and even has an added little trick to know about ASP.NET (ASPX) Commenting.
[CTRL]+[K],[C] = Comment the current line, or selected lines of code
[CTRL]+[K],[U] = Uncomment the current line, or selected lines of code
http://scottcate.looplogic.com/vstricks017
Comments
Visual Studio For Mac Shortcuts
comments