ReSharper / VS 2010:如何禁用 HTML 结束标记插入

发布于 2024-12-25 07:06:04 字数 474 浏览 0 评论 0 原文

  • ReSharper Full Edition v6.0.2202.688
  • Visual Studio 2010 Professional SP1

例如,当我键入 并按 space 或关闭开始标记时,ReSharper 会插入结束 < code> 标签。我不希望它这样做。我知道有一个相应的 Visual Studio 设置可以执行相同的操作,我已经禁用了该设置,但没有什么区别,因为 ReSharper 似乎以自己的方式执行此操作。

VS设置:

工具>选项>文本编辑器> HTML>格式化> “自动插入关闭标签”

我在网上寻找答案,我能找到的最接近的东西是 ReSharper 的某些版本中可能存在导致此问题的错误,但我有无法正确确认这一点。

  • ReSharper Full Edition v6.0.2202.688
  • Visual Studio 2010 Professional SP1

As an example, when I type <div and hit space or close the start tag ReSharper inserts the closing </div> tag. I don't want it to do this. I know there is a corresponding Visual Studio setting which does the same thing, which I have already disabled but makes no difference as ReSharper seems to do it in its own way.

VS setting:

Tools > Options > Text Editor > HTML > Formatting > "Auto insert close tag"

I have scoured the web for answers and the closest thing I can find is that there may be a bug in some versions of ReSharper which causes this, but I have been unable to properly confirm that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的温暖 2025-01-01 07:06:04

这是为了尊重 6.1 中的 VS 选项而修复的。请升级。

This was fixed to respect VS option in 6.1. Please upgrade.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文