如何使用“添加视图”来添加视图?使用 ASP.NET MVC 时如何在 Visual Studio 中高效地使用对话框?

发布于 2024-08-09 12:08:10 字数 564 浏览 5 评论 0原文

还有人认为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

若无相欠,怎会相见 2024-08-16 12:08:10
  1. 有搜索/过滤器,但它是“开头为”搜索。开始输入,列表将被过滤。
  2. 您可以粘贴类型名称,但您确实需要命名空间。
  3. 不,我认为您无法删除程序集。

是否可以改进?当然。您的一些建议很好,您应该考虑为它们提交Connect 报告。是不是没用,恕我直言,没有。

我在VS2010中尝试了该对话框。从 beta 2 开始,它的行为与 VS2008、AFAICS 相同。所以请尽快收到您的建议!

  1. There is search/filter, but it's a "starts with" search. Start typing and the list will be filtered.
  2. You can paste the type name, but you do need the namespace.
  3. No, I don't think you can remove assemblies.

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!

↘人皮目录ツ 2024-08-16 12:08:10

我主要同意你的观点。虽然它并非完全无用,但事实上,引用库中的所有类都会显示,并且它没有搜索框,这使得添加新视图的速度很慢。也许您可以在 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...

海之角 2024-08-16 12:08:10

由于似乎没有可用的解决方法,我已在 连接

如果其他人认为应该改进此对话框,请在 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.

久光 2024-08-16 12:08:10

Resharper 5.0 非常高效地实现此对话框,解决了所有描述的问题。

Resharper 5.0 implements this dialog very efficiently, solving all the described problems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文