我可以设置通过 Visual Studio 运行的应用程序将出现在哪个监视器上吗? [英] Can I set on which monitor will application run through the Visual Studio appear?

查看:16
本文介绍了我可以设置通过 Visual Studio 运行的应用程序将出现在哪个监视器上吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用多台显示器,我更喜欢在中央打开我的 Visual Studio,我希望我正在测试/通过 Visual Studio 运行的应用程序在左侧或右侧打开,而不是在我的顶部代码.

I am using multiple monitors and I prefer to have my Visual Studio open in the center one and I would like the application that I am testing / running through Visual Studio open on either left or right side, rather than on top of my code.

你认为有没有办法做到这一点,那就是自动?可以在选项中的某处设置吗?

Do you think there is a way of doing that, that is automatic ? Can this be set somewhere in the options ?

我知道一种解决方案是将主显示器更改到左侧,但这会使所有应用从左侧而不是中心开始.

I know that one solution is to change the main monitor to the left, but that would make all apps start on the left rather than in the center.

推荐答案

很遗憾没有.应用程序由操作系统定位,不是您可以从 Visual Studio 设置的选项.

Unfortunately not. The application is positioned by the OS and is not an option that you can set from Visual Studio.

解决方案:在退出时保存应用程序窗口的位置并在启动时再次恢复它很简单(a MSDN 博客文章).将其全部包裹在 #if DEBUG ... #endif 预处理器中,以便它仅在开发期间发生.

Solution: It is simple to save the position of the application window on exit and restore it again on start-up (a MSDN blog post). Wrap it all in #if DEBUG ... #endif pre-processor so that it only occurs during development.

HTH,
丹尼斯

HTH,
Dennis

这篇关于我可以设置通过 Visual Studio 运行的应用程序将出现在哪个监视器上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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