Skip to content

Commit d8885a0

Browse files
Merge pull request #11365 from MicrosoftDocs/main639161212242332769sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents e6aa876 + 7fe593f commit d8885a0

3 files changed

Lines changed: 210 additions & 172 deletions

File tree

docs/ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ If a shortcut is assigned to a command in the **Global** context and no other co
3737
3838
## Identify a keyboard shortcut
3939

40+
:::moniker range="visualstudio"
4041
1. On the menu bar, choose **Tools** > **Options**.
4142

42-
1. Expand **Environment**, and then choose **Keyboard**.
43+
1. Expand **All Settings** > **Environment**, and then choose **Keyboard**, and select the **Keyboard** link.
4344

44-
:::image type="content" source="media/tools-options-environment-keyboard.png" alt-text="Screenshot of Environment options in Visual Studio with the Keyboard option selected.":::
45+
:::image type="content" source="media/visualstudio/tools-options-environment-keyboard.png" alt-text="Screenshot of Environment options in Visual Studio with the Keyboard option selected.":::
4546

4647
1. In the **Show commands containing** box, enter all or part of the name of the command without spaces.
4748

@@ -54,7 +55,26 @@ If a shortcut is assigned to a command in the **Global** context and no other co
5455
1. If the command has a keyboard shortcut, it appears in the **Shortcuts for selected command** list.
5556

5657
:::image type="content" source="media/view-solution-explorer-command-shortcut.png" alt-text="Screenshot of the keyboard shortcut for the View.SolutionExplorer command.":::
58+
:::moniker-end
59+
:::moniker range="vs-2022"
60+
1. On the menu bar, choose **Tools** > **Options**.
61+
62+
1. Expand **Environment**, and then choose **Keyboard**.
63+
64+
:::image type="content" source="media/tools-options-environment-keyboard.png" alt-text="Screenshot of Environment options in Visual Studio 2022 with the Keyboard option selected.":::
5765

66+
1. In the **Show commands containing** box, enter all or part of the name of the command without spaces.
67+
68+
For example, you can find commands that contain *solutionexplorer*.
69+
70+
1. In the list, choose the correct command.
71+
72+
For example, you can choose **View.SolutionExplorer**.
73+
74+
1. If the command has a keyboard shortcut, it appears in the **Shortcuts for selected command** list.
75+
76+
:::image type="content" source="media/view-solution-explorer-command-shortcut.png" alt-text="Screenshot of the keyboard shortcut for the View.SolutionExplorer command.":::
77+
:::moniker-end
5878
## Customize a keyboard shortcut
5979

6080
1. On the menu bar, choose **Tools** > **Options**.
40.6 KB
Loading

0 commit comments

Comments
 (0)