且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2015 - CodeLens 使用键盘快捷键打开/关闭

更新时间:2022-12-22 09:04:14

要自动化选项对话框,您可以在 Visual Commander 并为其分配键盘快捷键:

To automate the Options dialog, you can create the following command in Visual Commander and assign a keyboard shortcut to it:

DTE.ExecuteCommand("EditorContextMenus.CodeLens.CodeLensOptions")
System.Windows.Forms.SendKeys.Send("{TAB} {ENTER}")