如何使用“添加视图”来添加视图?使用 ASP.NET MVC 时如何在 Visual Studio 中高效地使用对话框?
还有人认为VS中的添加视图对话框没用吗还是只有我这么认为?
为什么那里没有搜索/过滤?我什至无法将类型名称(没有命名空间)粘贴到那里以加快视图创建速度。
另外,那里还有很多不相关的类,包括所有引用库中的类。
我是否遗漏了一些东西,或者微软从未对此进行过任何可用性测试?
与手动滚动列出所有类型的组合框相比,是否可以过滤掉对话框中的类型/组件和/或更好的导航?是否可以仅包含特定目录/程序集/命名空间中的类型? (例如 ViewModels 命名空间)
编辑:从答案看来,没有可用的解决方法,我已在 Connect 上提出了建议:https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=507784
请投票如果您发现这是一个重要问题,请提出建议。
Does anyone else think that the add view dialog in VS is useless or is it just me?
Why is there no search/filtering in there? I can not even paste the type name (without namespace) there to speed up the view creation.
Plus, there are a lot of irrelevant classes there, including classes from all referenced libraries.
Am I missing something or Microsoft never did any usability testing with that??
Is it possible to filter out types/assemblies in the dialog and/or better navigation compared to manually scrolling the combobox with all the types listed? Is it possible to include only types from a particular directory/assembly/namespace? (the ViewModels namespace for example)
EDIT: As it seems from the answers that there is no usable workaround for this, I have filed a suggestion at Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=507784
Please vote for the suggestion if you find this is an important issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是否可以改进?当然。您的一些建议很好,您应该考虑为它们提交Connect 报告。是不是没用,恕我直言,没有。
我在VS2010中尝试了该对话框。从 beta 2 开始,它的行为与 VS2008、AFAICS 相同。所以请尽快收到您的建议!
Could it be improved? Sure. Some of your suggestions are good, and you should consider filing Connect reports for them. Is it useless, IMHO, no.
I tried the dialog in VS2010. As of beta 2, it behaves the same as VS2008, AFAICS. So get your suggestions in soon!
我主要同意你的观点。虽然它并非完全无用,但事实上,引用库中的所有类都会显示,并且它没有搜索框,这使得添加新视图的速度很慢。也许您可以在 ASP.NET MVC 站点上提交愿望清单错误报告...
I mainly agree with you. While it's not competely useless, tha fact that all the classes from the referenced libraries show up and that it doesn't have a search box make it slow to add a new view. Maybe you could file a wishlist bug report on the ASP.NET MVC site...
由于似乎没有可用的解决方法,我已在 连接。
如果其他人认为应该改进此对话框,请在 Connect 中为建议投票。
As it seems from that there is no usable workaround for this, I have filed a suggestion at Connect.
In case anyone else feels that this dialog should be improved, please vote for the suggestion in Connect.
Resharper 5.0 非常高效地实现此对话框,解决了所有描述的问题。
Resharper 5.0 implements this dialog very efficiently, solving all the described problems.