Can I set on which monitor will application run through the Visual Studio appear?

隐身守侯 提交于 2019-12-22 04:03:57

问题


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.


回答1:


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

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,
Dennis




回答2:


I had the same problem and eventually thought of the now-obvious solution -- make the left monitor the primary.... ;-)




回答3:


I had this problem, when connected to my work place with 2 monitors through RDP from a laptop. Visual Studio opened my app in the second monitor and I could not reach it. Win + Arrows helped me.



来源:https://stackoverflow.com/questions/3482201/can-i-set-on-which-monitor-will-application-run-through-the-visual-studio-appear

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!