在 Eclipse 中隐藏重复的工具栏项

2022-01-20 00:00:00 ide java eclipse spring-tool-suite

我不知道怎么做,但是我的 STS 有重复的工具栏项目,我不知道如何删除它们.这是我复制的工具栏的样子.

I don't know how, but my STS has got duplicate toolbars items and I am not sure how to remove them. Here is how my duplicated toolbar looks like.

我想摆脱这些.我试图隐藏工具栏,但没有帮助.有人知道如何摆脱重复的吗?

I want to get rid of these. I tried to hide the toolbar but that didn't help. Does anybody have any idea how to get rid of the duplicate ones?

推荐答案

自从升级到 Oxygen 后,我一直遇到同样的问题.我无法可靠地重现该问题.

I've been having the same problem since upgrading to Oxygen. I haven't been able to reliably reproduce the issue.

@howlger 建议的解决方法有帮助,而且比吹走整个工作区更不打扰:

The workaround suggested by @howlger has helped and is less intrusive than blowing away the entire workspace:

  1. 关闭 Eclipse.
  2. 在 Eclipse 工作区目录中,删除 .metadata.pluginsorg.eclipse.e4.workbenchworkbench.xmi 文件或只是重命名它,以便在需要时将其恢复恢复.
  3. 打开 Eclipse.
  4. 根据自己的喜好重新排列 UI 元素.
  1. Close Eclipse.
  2. In the Eclipse workspace directory, delete the .metadata.pluginsorg.eclipse.e4.workbenchworkbench.xmi file or just rename it so you can bring it back in case you need to revert.
  3. Open Eclipse.
  4. Rearrange the UI elements to your liking.

这很痛苦,但确实会从工具栏中删除重复的元素.

This is a pain, but does remove the duplicate elements from toolbars.

我还发现自定义透视不适用于重复项,但适用于非重复项:

I also found that customizing the perspective doesn't work for duplicated items, but does for non-duplicated:

  1. 窗口 -> 透视图 -> 自定义透视图...
  2. 在工具栏可见性"标签上,取消选择使工具栏变得混乱的项目.

相关文章