Skip to content

Commit 08ae738

Browse files
Merge pull request #12873 from anandmeg/shortcuts
Keyboard shortcut for toggle comment
2 parents 3ae95dc + b841529 commit 08ae738

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/ide/default-keyboard-shortcuts-in-visual-studio.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Keyboard shortcuts
33
description: Learn about the default keyboard shortcuts in Visual Studio that allow you to access a variety of commands and windows.
4-
ms.date: 05/21/2024
4+
ms.date: 08/13/2024
55
ms.topic: reference
66
helpviewer_keywords:
77
- shortcut keys [Visual Studio], keyboard binding schemes
@@ -39,7 +39,7 @@ All shortcuts in this section apply globally unless otherwise specified. The *Gl
3939
> [!TIP]
4040
> You can [look up the shortcut](identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md) for any command by opening the **Options** dialog box, expanding the **Environment** node, and then choosing **Keyboard**.
4141
42-
- [Build](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_build-popular-shortcuts)
42+
- [Build](#bkmk_build-popular-shortcuts)
4343
- [Debug](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_debug-popular-shortcuts)
4444
- [Edit](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_edit-popular-shortcuts)
4545
- [File](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_file-popular-shortcuts)
@@ -124,6 +124,7 @@ All shortcuts in this section apply globally unless otherwise specified. The *Gl
124124
|Toggle all outlining|**Ctrl+M, Ctrl+L** [Text Editor]| Edit.ToggleAllOutlining |
125125
|Toggle bookmark|**Ctrl+K, Ctrl+K** [Text Editor]| Edit.ToggleBookmark |
126126
|Toggle completion mode|**Ctrl+Alt+Space** [Text Editor]| Edit.ToggleCompletionMode |
127+
|Toggle line comment|**Ctrl+/** [Text Editor] <br>(available in [Visual Studio 2022 version 17.11 or later](/visualstudio/releases/2022/release-notes))<br /><br />or **Ctrl+K, Ctrl+/** [Text Editor] | Edit.ToggleLineComment |
127128
|Toggle outlining expansion|**Ctrl+M, Ctrl+M** [Text Editor]| Edit.ToggleOutliningExpansion |
128129
|Uncomment selection|**Ctrl+K, Ctrl+U** [Text Editor]| Edit.UncommentSelection |
129130
|Undo|**Ctrl+Z**<br /><br />or **Alt+Backspace**| Edit.Undo |

0 commit comments

Comments
 (0)