Visual Studio 2019:仅折叠此方法的快捷键

Vistual Studio 2019: Shortcut key to collapse this method only

如何仅折叠光标当前位于 VS2019 中其块中的当前方法(Windows)?

我知道 Ctrl+M,Ctrl+O,但我想要仅折叠一种方法的快捷方式。

您可以使用Ctrl+M+M,解决您的问题

CTL+M+M 仅折叠光标闪烁的方法。 This other thread has more information on Visual Studio shortcuts.

您可以使用 ctrl + shift + [,这可能有效

请使用以下快捷方式折叠一种方法 CTL+M+M