visual-studio VS2010 将代码窗口停靠在错误的位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2730925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:52:16  来源:igfitidea点击:

VS2010 docks code windows in the wrong place

visual-studio-2010visual-studiovisual-studio-2012

提问by Mark Heath

When I double click on an entry in my Error List or Find Results list in VS2010, it docks the newly opened source code file not in the large window where all my other source files go, but in the small narrow window at the bottom along with the error list etc.

当我在 VS2010 中双击错误列表或查找结果列表中的条目时,它会将新打开的源代码文件停靠在我所有其他源文件所在的大窗口中,而不是停靠在底部的小窗口中错误列表等。

How can I get it to put it up with the others by default?

默认情况下,我怎样才能让它与其他人一起使用?

If I double-click an item in Solution explorer it puts it in the right place

如果我双击解决方案资源管理器中的一个项目,它会将它放在正确的位置

回答by Mark Heath

I got things back to normal by using the Window | Reset Window Layoutmenu option. I noticed that now the tabs for "Error List" "Output" "Pending Changes" etc were now at the bottom of their docked window rather than the top. I think I somehow or other must have created a second code window area and docked my error list window etc into that.

我通过使用Window 使事情恢复正常| 重置窗口布局菜单选项。我注意到现在“错误列表”“输出”“待定更改”等选项卡现在位于停靠窗口的底部而不是顶部。我想我一定以某种方式创建了第二个代码窗口区域并将我的错误列表窗口等停靠在其中。

Incorrectly docked (tabs at the top):

错误停靠(顶部的标签):

VS2010 Output window incorrectly docked

VS2010 输出窗口错误停靠

Correctly docked (tabs at the bottom):

正确停靠(底部的标签):

VS2010 Output window correctly docked

VS2010 输出窗口正确停靠

回答by Pascal

I too had this problem and now found the cause: if you move the bottom window pane a visual guide is shown on which you can dock them to various places. For the bottom two visual options are shown - one where the pane will be part of the upper pane and one were it will be placed below the upper pane. The second choice gives a proper behavior wereas the first one gives you the tab titles at the top and doesn't work.

我也遇到了这个问题,现在找到了原因:如果您移动底部窗格,则会显示一个可视指南,您可以将它们停靠在不同的位置。底部显示了两个可视选项 - 一个是窗格将成为上窗格的一部分,另一个是将其放置在上窗格下方。第二个选择给出了一个正确的行为区域,第一个给你顶部的标签标题并且不起作用。

I think this is very annoying because it happens from time to time that I accidentally dragthe pane. (I'm using a tablet) Probably this dragging is the cause for the trouble.

我认为这很烦人,因为我不小心拖动窗格时不时发生。(我正在使用平板电脑)可能是这种拖动是造成问题的原因。

回答by Karl

I was having the same issue but, for a number of reasons, didnt want to reset all my settings.

我遇到了同样的问题,但出于多种原因,不想重置我的所有设置。

I draged all the open windows from the bottom panel area so they were floating, closed the find results window, redocked the error and output windows, then did a search (find in files) and the new floating window popped up, I then docked this to the same area that errors and output were in and when I double clicked on a file in the results window it opened in the right place.

我从底部面板区域拖动所有打开的窗口,使它们浮动,关闭查找结果窗口,重新停靠错误和输出窗口,然后进行搜索(在文件中查找)并弹出新的浮动窗口,然后停靠此到错误和输出所在的同一区域,当我双击结果窗口中的文件时,它在正确的位置打开。

I hope this works for you to and anyone else experiencing this issue...

我希望这对您和其他遇到此问题的人有用...

回答by VSUser

I couldn't find the Window -> Reset Window Layout option. The above answers helped me understand, the problem was with me having moved around my windows. What finally helped me was the little symbols on the top right corner of the find results window. Instead of the usual 'Inverted triangle'+'Pushpin'+'x' symbols, what I saw was just the Inverted Triangle, which meant I docked the find results window in the main file docking area. So, when I moved it to the bottom docking area in Visual studio, it worked for me.

我找不到窗口 -> 重置窗口布局选项。以上答案帮助我理解,问题在于我在窗户周围移动。最终帮助我的是查找结果窗口右上角的小符号。我看到的不是通常的“倒三角形”+“图钉”+“x”符号,而是倒三角形,这意味着我将查找结果窗口停靠在主文件停靠区域中。因此,当我将它移动到 Visual Studio 的底部停靠区域时,它对我有用。