我认为我找到了答案。 我制定了以下宏观:
Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module RecordingModule
Sub CleanupImplementedInterface()
DTE.ActiveDocument.Selection.LineDown(True, 7)
DTE.ActiveDocument.Selection.Text = " {get"
DTE.ActiveDocument.Selection.DeleteLeft(3)
DTE.ActiveDocument.Selection.Text = " get; set; }"
DTE.ActiveDocument.Selection.CharRight
DTE.ExecuteCommand ("Edit.Replace")
DTE.Find.FindWhat = " {"
DTE.Find.Target = vsFindTarget.vsFindTargetCurrentDocument
DTE.Find.MatchCase = False
DTE.Find.MatchWholeWord = False
DTE.Find.Backwards = False
DTE.Find.MatchInHiddenText = True
DTE.Find.PatternSyntax = vsFindPatternSyntax.vsFindPatternSyntaxLiteral
DTE.Find.Action = vsFindAction.vsFindActionFind
If(DTE.Find.Execute() = vsFindResult.vsFindResultNotFound) Then
Throw New System.Exception("vsFindResultNotFound")
End If
DTE.Windows.Item("{CF2DDC32-8CAD-11D2-9302-005345000000}").Close
DTE.ActiveDocument.Selection.CharLeft
End Sub
Sub Brackets()
DTE.ActiveDocument.Selection.Text = "<%="
End Sub
End Module
随后,在科学、技术和科学研究所,我启用了各种工具和软件;“环境”和“关键”。
在“包括:”文本框一中,我宏观的名称被打上了字。
然后,我选择了“Html源编辑”在“Use new shortcut in:”滴式箱中,并用短击钥匙Alt-B。
现在,每当我需要时,我就不使用电话,而只是编辑的Alt-B。
解决办法虽然重要,但可行。 希望它们在2010年确定这一点。 looked。