简体   繁体   English

Visual Studio 2010不同的项目不同的视图

[英]Visual Studio 2010 Different Projects Different Views

Is there any way within Visual Studio 2010 to have different windows and panes viewed with different project types? 在Visual Studio 2010中是否可以通过不同的项目类型查看不同的窗口和窗格? In other words, if you are doing a Windows Application certain panes are automatically open, but an ASP.NET project different panes are open, or a Database Project another set of panes are automatically opened. 换句话说,如果您正在执行Windows应用程序,则某些窗格会自动打开,但是ASP.NET项目中的其他窗格会打开,或者数据库项目中的另一组窗格会自动打开。

Is that possible? 那可能吗?

Not really. 并不是的。 There is a way to export a layout as a subset of your preferences and settings and then re-import that once VS is open, but I'm guessing that would be time-consuming and probably get old after a few days. 有一种方法可以将布局导出为您的首选项和设置的子集,然后在VS打开后重新导入它,但是我想那会很耗时,几天后可能会变旧。

I believe VS does support the notion of layouts or views, since it does switch between them when you go from development mode to debug, for example. 我相信VS确实支持布局或视图的概念,因为例如当您从开发模式转到调试时,它会在它们之间切换。 So you'd have to figure out how that works and maybe automate it with a macro. 因此,您必须弄清楚它是如何工作的,并可能使用宏将其自动化。 I looked for some add-in or plugin that could do this and didn't really find anything useful. 我寻找了可以做到这一点的插件或插件,却没有真正找到有用的东西。

There is a visual studio perspectives extension that can do this: 有一个Visual Studio透视图扩展可以做到这一点:

Also, checkout this question: Is there anything like Eclipse Perspective in Visual Studio? 另外,请检查以下问题: Visual Studio中是否有类似Eclipse Perspective的东西?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM