[英]Is there a Visual Studio keyboard shortcut that jumps to the end of a line and adds a semicolon?
沒有。
您可以只輸入End and than ; 。
如果您的鍵盤不帶“ end”,請考慮-通過“工具”->“自定義”->“鍵盤”為您選擇的組合鍵添加“ Edit.EmacsLineEnd”命令的自定義綁定
如果您確實需要一鍵式操作,則必須編寫擴展名。
您可以使用Visual Commander擴展名創建以下C#命令並為其分配快捷方式:
DTE.ExecuteCommand("Edit.LineEnd");
(DTE.ActiveDocument.Selection as EnvDTE.TextSelection).Text = ";";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.