Visual Studio ASP .Net MVC智能感知 [英] Visual Studio ASP .Net MVC Intellisense

查看:216
本文介绍了Visual Studio ASP .Net MVC智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在html属性中使用它,则vs 2008 intellisense不起作用.例子

the vs 2008 intellisense doesn't work if i use it inside html attribute. example

<form method="post" action="<%= Url.Action %>"

当我键入Url.Action时,代码提示不起作用,相反,它为我提供了可用于"action"值的文件选项.

while i'm typing Url.Action the code hint doesn't work, instead it gave me options of files that can be used for the "action" value.

intellisense在html属性中不起作用是正常现象吗?还是我缺少一些可修复此错误的东西.

Is it normal that the intellisense doesn't work inside html attribute? or am'i missing something to fix this bug.

推荐答案

我认为目前只是这样.我有同样的问题",但已经习惯了.

I think it's just that way for now. I have the same 'issue' but got used to it.

提示:如果我需要Intellisense,我只是在其他地方临时创建一个单独的<%%>括号(Intellisense将在其中工作),编写所需的代码,然后将其复制到需要的位置.

Tip: If I need Intellisense, I just create a separate <% %> bracket somewhere else temporarily (where Intellisense will work), write the code I need, and then copy it to where I need it.

这篇关于Visual Studio ASP .Net MVC智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆