【问题标题】:How to enable Intellisense for Taghelpers on Views in Visual Studio Code?如何在 Visual Studio Code 中的视图上为 Taghelpers 启用 Intellisense?
【发布时间】:2017-03-24 20:14:27
【问题描述】:

我正在尝试使用 Visual Studio Code 在我的 Mac 上开发一个 Asp .Net Core MVC 应用程序。 大部分情况都正常,除了我无法让 Intellisense 在我的视图中为 Taghelpers 工作。 我看到其他人为 Visual Studio 发布了相同的问题,但没有为 Mac 上的 Visual Studio Code 发布相同的问题。我不确定这有多大的不同。总的来说,我是 Asp 新手。

我有

   "Microsoft.AspNetCore.Razor.Tools": {
  "type": "build",
  "version": "1.0.0-preview2-final"
},

  "tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final"
  },

在 project.json 上。

我也有

@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

关于 _ViewImports.cshtml

除了 Taghelpers,Intellisense 在视图上也能正常工作。

有什么建议吗?

【问题讨论】:

    标签: asp.net razor asp.net-core intellisense tag-helpers


    【解决方案1】:

    遗憾的是,Visual Studio Code 目前不支持 TagHelper IntelliSense。这是我们为未来而努力的事情!

    【讨论】:

      猜你喜欢
      • 2019-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-29
      • 2017-10-16
      • 2016-03-31
      • 2019-11-05
      • 2018-03-22
      相关资源
      最近更新 更多