开发者

Visual Studio Dual Monitor Layout : Watch/Debug Window keeps Popping on Left Screen

Every Time I launch a Debug Session VS 2010 pops the Watch/Debug Windows on the left Screen.

I then move it manually to the Right One. After ending the 开发者_JS百科session, going back to code, and relaunching a debug session, that damned Watch window pops on the left again.

It turns me crazy !

Why isn't VS memorizing where I have put that window ???


Do you stop debug session with Shift+F5 or by quitting application which is being debugged? VS seems to forget window positions if debugging process was stopped by Shift+F5.


I tried the solution I found on this post. Did not work. Seems like it's the exact same problem as with the find dialog (see this post)

Ended-up docking the heck out of the Watch/debug window into a more "stable" panel (Class view in my case).

This still looks like an annoying known bug in VS 2010. This sucks.


Visual studio 2010 has at least 3 screen modes.

  • Normal
  • Full
  • Debug

You should export the window settings after entering into the desired screen mode(in your case, debug).

Steps

  1. Start 'debug' your project
  2. Move the desired windows(watch/debug) to the 2nd monitor on right
  3. Goto Tools>Import and Export Settings>Export selected environment settings>General Settings>Window Layouts and export it into a file.
  4. Load the settings by using the import settings in the same window

Visual studio would remember your settings and would move the window to the 2nd monitor on the right, whenever you enter 'debug' mode.

As a tip, it is a great idea to create macros to load window settings and to assign keystrokes to switch between window modes, depending on the kind of development you are on.

code to create a macro to import a vssetting file: DTE.ExecuteCommand("Tools.ImportandExportSettings", "-import:Path to VSSetting File")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜