eclipse 文件在错误的编辑区域打开

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15404808/
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-09-19 20:11:00  来源:igfitidea点击:

Files get opened in wrong editing area

eclipse

提问by 0xCAFEBABE

my Eclipse Juno SR1 somehow got screwed up. It seems I have a new area, and if I interpret it correctly, it is called the "Shared Area" (only from a tooltip). I cannot get rid of it by conventional means (i.E. closing/hiding). All files I open now are opened in this shared area, not in the area my files were opened before. The area is distinct from the normal editing area in that it will not go to the same place (top right, under the menus).

我的 Eclipse Juno SR1 不知何故搞砸了。似乎我有一个新区域,如果我正确解释它,它被称为“共享区域”(仅来自工具提示)。我无法通过常规方式(即关闭/隐藏)摆脱它。我现在打开的所有文件都在此共享区域中打开,而不是在我以前打开文件的区域中打开。该区域与普通编辑区域的不同之处在于它不会转到同一个地方(右上角,菜单下)。

The area has only maximize and minimize buttons. Maximizing it will maximize it over everything, this would be expected. Minimizing it actually hides it, but opening an existing file will bring it back as kind of a popup over the eclipse file list.

该区域只有最大化和最小化按钮。最大化它将在所有事情上最大化它,这是意料之中的。最小化它实际上会隐藏它,但打开现有文件会将它带回来,就像 eclipse 文件列表上的弹出窗口一样。

I do not seem to find how I activated this feature, and I cannot seem to find any activation instructions in the Eclipse help (the help looking for "shared" and "area" separately doesn't really help anyway).

我似乎没有找到我是如何激活这个功能的,而且我似乎在 Eclipse 帮助中找不到任何激活说明(分别寻找“共享”和“区域”的帮助无论如何都没有真正的帮助)。

I just want this feature/window/perspective to go away and let me open files like I used to. Any tips?

我只是想让这个功能/窗口/透视图消失,让我像以前一样打开文件。有小费吗?

Edit: Maybe this area is not called "Shared area", this could be wrong. If not, it doesn't seem to have any name. It just forces all editors opening new files to open in it, and not in the area that they usually open in. The way I determined it was called "Shared area" is by minimizing it, then opening a file. It opens as kind of a popup (described above), and there's a menu bar attached with 2 icons, "Restore" and "Shared area", which is pre-selected.

编辑:也许这个区域不叫“共享区域”,这可能是错误的。如果没有,它似乎没有任何名称。它只是强制所有打开新文件的编辑器在其中打开,而不是在他们通常打开的区域中打开。我确定它被称为“共享区域”的方式是将其最小化,然后打开一个文件。它作为一种弹出窗口(如上所述)打开,并且有一个带有 2 个图标的菜单栏,“恢复”和“共享区域”,这是预先选择的。

This is the are "docked" to the right: enter image description here

这是右侧的“停靠”: 在此处输入图片说明

This is the area docked below: enter image description here

这是停靠在下面的区域: 在此处输入图片说明

The area is not dockable in the way that it docks to certain areas of Eclipse, but stretches (when dragged) over the whole Eclipse Window and even outside of it.

该区域在停靠到 Eclipse 的某些区域时不可停靠,而是在整个 Eclipse 窗口甚至外部延伸(拖动时)。

回答by Kai

You should reset the perspective Window-> Reset Perspective...

你应该重置视​​角Window->Reset Perspective...

回答by Monstieur

The shared area is the default location to open files. The files remain open in the shared area across different perspectives such as Java and Debug so that you can switch between them while working on the same files. You'd generally drag a file outside the shared area to work on it without it appearing in other perspectives.

共享区域是打开文件的默认位置。这些文件在 Java 和 Debug 等不同视角的共享区域中保持打开状态,以便您可以在处理相同文件时在它们之间切换。您通常会将文件拖到共享区域之外进行处理,而不会出现在其他视角中。

It's hard to position the shard area view by dragging it, but you can drag the surrounding views in place around it to get it where you want.

很难通过拖动来定位分片区域视图,但是您可以将周围的视图拖动到它周围的适当位置以将其放置到您想要的位置。

回答by Jose Israel Martinez

I click on the bottom corner of the offending tile and dragged in till it closed! The "reset perspective" did not work for me but the draggin to a smaller size as if it were a picture did. Hope this helps.

我点击有问题的图块的底角并拖入直到它关闭!“重置透视图”对我不起作用,但将拖动到较小的尺寸,就好像它是一张图片一样。希望这可以帮助。

回答by riuryK

I think I know what you mean. If you drag any view to that "Shared Area" but not to the body but to the header (where the title is supposed to be) the dragged view will occupy completely that "Shared Aread".

我想我知道你的意思。如果您将任何视图拖到该“共享区域”而不是正文而是拖到标题(标题应该在的位置),则拖动的视图将完全占据该“共享区域”。

Hope that helps.

希望有帮助。

回答by Srinath Shah

If nothing works out for you, simply go to window -> new Window. Opens up a fresh copy of eclipse with everything loaded up. Even on a restart,loads up like normally it would.

如果没有任何效果,只需转到 window -> new Window。打开一个新的 eclipse 副本,所有内容都已加载。即使在重新启动时,也会像往常一样加载。