English 中文(简体)
英特尔利斯群岛<%=预期<%@Assembly=已退还
原标题:Intellisense <%= intended <%@ Assembly= returned
  • 时间:2009-08-26 11:39:57
  •  标签:

在我编辑我的意见时,我开始将我的代码括号:

提纲

和在座标

提纲@ Assembly... 提纲@ Control... 提纲@ etc...

which is fine, but when I continue my line and press the [=] key, it automatically selects 提纲@ Assembly=%> and completes my tag.

这不是一件大事,但确实使我放慢了一点,特别是在编辑失去田地时。

Has anyone run into this problem in the past and is there a way to either add 提纲= to intellisense or stop returning the other directives when I hit [=].

我记得,在最近的一场白.中看到了同样的问题(他说的是“什么是? ,什么是? 那么继续了),但我可以记住什么。

感谢援助,

参考

最佳回答

或者存在简单的解决办法:

Press these keys: <>% Esc<>>。

问题回答

我认为我找到了答案。 我制定了以下宏观:

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。

Cntl-Z型两倍,自动改动将不复存在。 你可以为任何不想要的英特尔利斯群岛建议这样做。





相关问题