Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Clicking Find Results Opens Code in Wrong Window

Click Window → Reset Window Layout


Works for VS2013 Update 4 and all newer versions, including VS2019.

I thought I had this problem but it was easily fixed by docking the Find Results window using the very bottom of the window position selectors.

The files open in the same position as the Find Results when the window is docked in the positions immediately next to the centre position.

VS2013 window position selector


This is also being discussed here: VS2010 docks code windows in the wrong place


Go the same... irritating... I realized that this unwanted behavior happened only while the app was running in debug. After I stopped debugging, a new panel was created with this file open in it. If I opened new files, they would open in this new panel. If I close all files in this new panel, opening new files from the "Find In Files" open in the standard code editor window (as long as the app is not running).


I had this problem also. I experienced the problem in VS2013. I did not want to do "Window -> Reset Window Layout" because it seemed like that was going to do other stuff that I did not want it to do.

Here was my solution:

  1. I noticed the problem in VS2013 in which I had project "A" open.

  2. I opened another copy of VS2013 and opened project "B".

  3. I closed the copy of VS2013 that was exhibiting the annoying behavior: project A.

  4. I closed the copy of VS2013 that had project B open.

  5. This saved the settings from the "good" copy.

  6. Opened project A in VS2013 and all was well.

Obviously, the caveat is that this requires you notice the problem before you close VS2013. But if you do notice it in time, this is a pretty easy solution.