gpt4 book ai didi

asp.net-mvc - 如何为 Razor View 引擎获取 IntelliSense

转载 作者:行者123 更新时间:2023-12-03 11:20:34 25 4
gpt4 key购买 nike

刚刚安装了 Microsoft Visual Web Developer 2010 并尝试使用 Razor View Engine 创建一个 MVC 应用程序。

打开“.cshtml”文件时,我无法在编辑器中获取语法的颜色,也没有出现智能感知。是否有任何我明确需要启用它的选项?

最佳答案

更新: Release Candidate 终于支持 Razor IntelliSense。
Update2 : The final release got announced here 并且它还支持 Razor 语法的 Intellisense。呜呼!

这是新增强的 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

关于asp.net-mvc - 如何为 Razor View 引擎获取 IntelliSense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3491456/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com