3

This question is solely about workflow in VS2013. In VS2012, when I would build my app, VS would display the app on the second monitor attached to my system. This was nice because I could see my IDE while I interacted with the app. However, in VS2013, the app always just displays over the IDE, so I have "move it out of the way" just to get back to the code. I would like VS2013 behavior to match that found in VS2012. Is there a setting in the IDE that I can switch on to ensure the app displays on the second monitor?

I did find another question on SO about this regarding VS2012, but the solution there does not work for Win8.1 using VS2013. Is there an option for this?

Community
  • 1
  • 1
ariestav
  • 2,799
  • 4
  • 28
  • 56
  • It is possible to save the screen window position in for your application for the next run instance. I've done the this for debugging purposes to achieve what you are doing. There are some examples out on the web – garaber Nov 06 '13 at 18:56
  • great, can you point me to some? I didn't find any of those examples in all my googling. – ariestav Nov 06 '13 at 18:59

3 Answers3

8

it's not exactly the answer to your question - garaber has already addressed that - but also useful in this context is that you can move a window to a different display using the keyboard -

windows-shift-left arrow

and

windows-shift-right arrow

fast, easy way to move a window to an adjacent display (either to the right or the left)

EDIT: should have noted that this is not confined to visual studio - this is a feature introduced with windows 7 and works with any window.

Dave Rael
  • 1,759
  • 2
  • 16
  • 21
  • This seems closer to the solution I was looking for: a non-programmatic one, and that focuses more on usability of the IDE. Thanks! – ariestav Dec 17 '13 at 15:36
  • i thought it wasn't exactly what you were seeking because the question was really stated as being about getting the window to start in the desired location, rather than moving it after it is open - nonetheless, this is something useful that any windows user should know to be able to move windows around easily and i'm glad it serves your purpose. – Dave Rael Dec 17 '13 at 17:59
  • Thanks Dave! The essence of the question was: `I would like VS2013 behavior to match that found in VS2012. Is there a setting in the IDE that I can switch on to ensure the app displays on the second monitor?` It was more of a usability question, I thought. I will try to be more explicit in future questions. – ariestav Dec 18 '13 at 14:55
  • Now if we could just get visual studio to fire the Onload event or resize event when that key combo is triggered, that would be just Fab! – Rudy Hinojosa Oct 27 '14 at 15:29
2

Here's a couple of good links that will show you how to do what you're wanting:

Community
  • 1
  • 1
garaber
  • 232
  • 3
  • 13
  • With these examples I would wrap them around conditional compiles for debugging – garaber Nov 06 '13 at 19:11
  • thank you for providing those, but I should have mentioned I'm working with HTML5 / CSS / WinJS to code, so I don't think I can implement this code around compiler directives. – ariestav Nov 06 '13 at 20:32
  • So you app is running in a browser? Please be more precise do we can help. – Damian Nov 07 '13 at 12:07
  • It's a Windows Store App coded in javascript and makes use of the WinJS library. – ariestav Nov 08 '13 at 14:31
1

You can also change your principal screen, and it works :

In, Screen Resolution : set your second screen as a principal screen.

aguetat
  • 514
  • 4
  • 18