加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc – 如何获取针对Razor View Engine的IntelliSense

发布时间:2020-12-15 18:47:01 所属栏目:asp.Net 来源:网络整理
导读:只是安装了Microsoft Visual Web Developer 2010,并尝试使用Razor View Engine创建一个MVC应用程序。 当打开一个“.cshtml”文件时,我无法在编辑器中获取语法的颜色,并且未显示智能感知。是否有任何选项我明确需要启用它? 解决方法 更新: Release Candi
只是安装了Microsoft Visual Web Developer 2010,并尝试使用Razor View Engine创建一个MVC应用程序。

当打开一个“.cshtml”文件时,我无法在编辑器中获取语法的颜色,并且未显示智能感知。是否有任何选项我明确需要启用它?

解决方法

更新: Release Candidate终于支持Razor IntelliSense。
Update2: The final release got announced here,它还支持Intellisense for Razor语法。 Woohoo!

以下是新增强的Intellisense和Razor语法突出显示的屏幕快照:

对于MVC3和NuGet的一个很好的概述/介绍,我建议你看看这个PDC10 video。

上一个答案

不,目前的测试版还没有工作:

Razor intellisense isn’t in today’s
beta. We needed to do a little more
testing (and bug fixing) before we
were ready to distribute it broadly.
It patches a few VS files and so we
need to make sure it is 100% solid
before giving it out broadly.

It will definitely be in the final
release,though,and should be
available for people to install in the
next few weeks.

Thanks,

Scott

取自http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx#7624491

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读