我找到了如何隐藏特定工具栏的方法(不知道为什么右键单击工具栏不能像办公软件那样起作用...):
进入窗口->透视图->自定义透视图...
在“工具栏可见性”选项卡上取消勾选“终端”选项以隐藏它
我尝试在“窗口 -> 透视图 -> 自定义透视图”中取消“工具栏可见性”选项卡中的“终端”,但这并没有起作用。 "打开终端"图标仍然存在。我还尝试重新启动Eclipse,但是那些终端图标仍然存在。
但是,以下操作对我有用:
希望这可以帮助您。
最近我也遇到了这个问题。以下是我所做的步骤,以删除多余的终端图标:
Make sure that eclipse is not opened since it will save its workbench state when shutting down
Open up your eclipse workbench.xmi file, it should be located in the .metadata/.plugins/org.eclipse.e4.workbench folder inside your workspace
Search for XML objects that has "Open a Terminal" as a tooltip, you should find several. Each element will look like:
<children xsi:type="menu:HandledToolItem" xmi:id="_rF1Qc7hJEeilL5I7ZRh67w" elementId="org.eclipse.tm.terminal.view.ui.commands.launchToolbar" iconURI="platform:/plugin/org.eclipse.tm.terminal.view.ui/icons/eview16/console_view.png" tooltip="Open a Terminal" command="_rF3HG7hJEeilL5I7ZRh67w">
<persistedState key="IIdentifier" value="org.eclipse.tm.terminal.view.ui/org.eclipse.tm.terminal.view.ui.commands.launchToolbar"/>
</children>
Remove all objects but one and save the file, you should now only have one terminal icon the next time you open eclipse.