Microsoft Visual Studio Code Mac Shortcuts

  1. Microsoft Visual Studio Code Mac Shortcuts Windows 10
  2. Microsoft Visual Studio
  3. Microsoft Visual Studio Code Mac Shortcuts 2016
  4. Microsoft Visual Studio Code Mac Shortcuts Download

Jan 03, 2020 To change the keyboard shortcuts for visual studio code follow the below steps. Open Visual Studio Code and navigate to FilePreferencesKeyboard Shortcut. Open Visual Studio Code Keyboard ShortCuts. Click on edit keybindings.json You will see two files Default bindings and keybindings.json side by side as shown below. Visual Studio Code Keyboard Shortcut Window. Custom Keyboard Bindings. Dec 13, 2019  Visual Studio for Mac is a.NET integrated development environment on the Mac that can be used to edit, debug, and build code and then publish an app. In addition to expected features, such as a standard editor and debugger, Visual Studio for Mac includes compilers, code completion tools, graphical designers.

-->

For information about keyboard accessibility, see How to: Use Keyboard Navigation.

You can access a variety of commands in Visual Studio for Mac by using the appropriate keyboard shortcut. This document lists the default shortcuts for the Visual Studio for Mac key binding scheme. For more information about how to change the key binding scheme, see Customizing the IDE. You can also customize shortcuts for a command using the Visual Studio for Mac > Preferences menu item and choosing Environment > Key Bindings in the Preferences window.

Tip

The keyboard shortcuts displayed in this document, and the key binding preferences in Visual Studio for Mac, are presented using the symbols commonly used in macOS. If you are unsure of a symbol, review the macOS key symbols loopkup table.

Downloadable quick ref pdfs

We have compiled the most used, and most useful, keyboard shortcuts into a downloadable pdf file. We have two versions,one that shows shortcuts for Visual Studio for Mac, and a version that shows Visual Studio shorts side-by-side for usersthat have prior experience with Visual Studio when using Windows.

Code Navigation

CommandsKeyboard shortcuts
Find References⇧⌘R, F12
Go to Declaration⌘D, F12
Next Error⌥⇧⇟, ⇧⌘F12
Next Issue in File⌥⇟
Previous Error⌥⇧⇞
Previous Issue in File⌥⇞

Debug

CommandsKeyboard shortcuts
Enable or Disable Breakpoint⌥⌘/, ⌘F9
Pause⌥⌘P, ⌥⌘L5
Remove All Breakpoints⇧⌘F9
Run To Cursor⌘F10
Set Next Statement⇧⌘F10
Show Next Statement⌥*
Step Into⇧⌘I, ⌘F11
Step Out⇧⌘U, ⇧⌘F11
Step Over⇧⌘O, F10
Toggle Breakpoint, F9
View Breakpoints⌥⌘B

Designer

CommandsKeyboard shortcuts
Switch between related files⌃⌘↑

Edit

CommandsKeyboard shortcuts
Constraint Editing Mode⌘E
Copy⌘C
Cut⌘X
Delete⌘⌫
Format Document⌃I
Indent Selection⌘]
Paste⌘V
Preferences⌘,
Redo⇧⌘Z
Rename⌘R, F2
Select All⌘A
Show Code Generation⌘I
Toggle All Folds⌥⇧⌘↑
Toggle Definitions⌥⇧⌘↓
Toggle Fold⌥⇧⌘←
Toggle Line Comment(s)⌘/
Undo⌘Z
Unindent Selection⌘[
Update Frame from Constraints⇧⌘R

F# Integration

CommandsKeyboard shortcuts
Clear F# Interactive⌃⌥C
F# Interactive⌃⌥F
Restart F# Interactive⌃⌥R
Send line to F# Interactive⌃⌥L
Send references to F# Interactive⌃⌥P
Send selection to F# Interactive⌃⏎

File

CommandsKeyboard shortcuts
Close All⇧⌘W
Close File⌘W
Close Workspace⌥⌘W
New File⌘N
New Solution⇧⌘N
Open⌘O
Print⌘P
Quit⌘Q
Revert⌘U
Save⌘S
Save All⇧⌘S

Help

CommandsKeyboard shortcuts
API Documentation⌥⌘?
Unity API Reference⌘'

Other

CommandsKeyboard shortcuts
Implement Unity Messages⇧⌘M
Inspect⌥⌘I

Project

CommandsKeyboard shortcuts
Add Files⌥⌘A
Build⌘K, ⇧F6
Build All⌘B, F6
Clean⇧⌘K
Rebuild⌃⌘K
Rebuild All⌃⌘B
Start Debugging⌘⏎, F5
Start Without Debugging⌥⌘⏎, ⌃F5
Stop⇧⌘⏎, ⇧F5

Refactoring

CommandsKeyboard shortcuts
Import Symbol⌃⌥␣
Quick Fix⌥⏎

Search

CommandsKeyboard shortcuts
Command⇧⌘P
Find in Files⇧⌘F
Find Next⌘G, F3
Find Next Like Selection⌘E, ⌘F3
Find Previous⇧⌘G, ⇧F3
Find Previous Like Selection⇧⌘F3
Find⌘F
Go to File⇧⌘D
Go to Line⌘L
Go to Type⇧⌘T
Navigate To⌘.
Replace in Files⌥⇧⌘F
Replace⌥⌘F

Text Editor

CommandsKeyboard shortcuts
Complete Word⌃␣
Delete left character⌃H
Delete next subword⌃⌦
Delete next word⌥⌦
Delete previous subword⌃⌫
Delete previous word⌥⌫
Delete right character⌃D
Delete to end of line⌃K
Dynamic abbrev⌃/
Expand selection⌥⇧↓
Expand selection⌥⇧↑
Expand selection to document end⇧⌘↓, ⇧⌘↘
Expand selection to document start⇧⌘↑, ⇧⌘↖
Expand selection to line end⇧↘, ⇧⌘→
Expand selection to line start⇧↖, ⇧⌘←
Expand selection to next line⇧↓
Expand selection to next word⌥⇧→
Expand selection to page down⇧⇟
Expand selection to page up⇧⇞
Expand selection to previous line⇧↑
Expand selection to previous word⌥⇧←
Expand selection to the left⇧←
Expand selection to the right⇧→
Find caret
Go left one character⌃B
Go right one character⌃F
Go to beginning of document⌘↑
Go to beginning of line⌘←, ⌃A
Go to end of document⌘↓
Go to end of line⌘→, ⌃E
Go to Matching Brace⇧⌘
Go to next line⌃N
Go to next word⌥→
Go to previous line⌃P
Go to previous word⌥←
Insert line break after the caret⌃O
Move caret to EOL and insert new line⇧⏎
Move the line or highlighted selection down⌥↓
Move the line or highlighted selection up⌥↑
Move to next usage⌃⌥⌘↓
Move to prev usage⌃⌥⌘↑
Show Parameter List⌃⇧␣
Show quick info⌘F1
Show Scopes⌥⇧⌘P
Transpose characters⌃T
Wrap with <div>⌥⇧W

View

Microsoft Visual Studio Code Mac Shortcuts Windows 10

CommandsKeyboard shortcuts
Center and Focus Document⌃L
Focus DocumentF7
Full Screen⌃⌘F
Move to Next Notebook⌥⌘→
Move to Previous Notebook⌥⌘←
Navigate Back⌃⌘←
Navigate Forward⌃⌘→
Normal Size⌘0
One Editor Column⌥⌘1
Show Next⌥⌘↓, F8
Show Previous⌥⌘↑, ⇧F8
Two Editor Columns⌥⌘2
Zoom In⌘+, ⌘=
Zoom Out⌘-, ⌘_

Window

CommandsKeyboard shortcuts
Activate 1⌘1
Activate 2⌘2
Activate 3⌘3
Activate 4⌘4
Activate 5⌘5
Activate 6⌘6
Activate 7⌘7
Activate 8⌘8
Activate 9⌘9
Hide Others⌥⌘H
Hide Visual Studio⌘H
Minimize⌘M
Next Document⌘}, ⌘F6
Previous Document⌘{, ⇧⌘F6
Switch to next document⌃⇥
Switch to next pad⌃⌥⇥
Switch to previous document⌃⇧⇥
Switch to previous pad⌃⌥⇧⇥

macOS key symbols lookup

SymbolKey
Command (cmd)
Option (alt)
Shift
Control (ctrl)
Page Up (Pg Up)
Page Down (Pg Dn)
Delete (Backspace)
Forward Delete
Return
←→↑↓Arrow Keys
Home
End
Space Bar
Tab

See also

Keyboard: CTRL + K, CTRL + C (comment); CTRL + K, CTRL + U (uncomment)
Menu: Edit -> Advanced -> Comment Selection; Edit -> Advanced -> Uncomment Selection
Command: Edit.CommentSelection; Edit.UncommentSelection
Versions: 2008,2010
Published: 4/13/2010
Code: vstipEdit0047

Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page! Microsoft office home & business 2019 mac.

Sometimes it's the simple stuff we forget about. So I present to you the classic Comment and Uncomment Selection. Naturally, you have the Comment and Uncomment buttons:

And, of course, we have the Menu items:

But it's the keyboard shortcuts that really rock! These will, predictably, comment or uncomment lines of code for you. So, let's say you have some code you want commented out. Just select it:

Then press CTRL + K, CTRL + C (in this example):

Microsoft Visual Studio

Voila! It's commented out. Okay, great, but what if you don't want to use the mouse? No problem! Just hold ALT + SHIFT + [UP or DOWN ARROW] to do a vertical selection (NOTE: In VS2008 you have to go right or left one character before you can go up or down for vertical selection):

Microsoft Visual Studio Code Mac Shortcuts 2016

Then press CTRL + K, CTRL + U (in this example):

Microsoft Visual Studio Code Mac Shortcuts Download

And there you go! Comment and Uncomment actions anytime you want!