如何在Eclipse中自定义工具栏?

时间:2023-01-20 18:51:15

I am trying to customize Eclipse to speed up development and minimize distractions for Android Java development.

我正在尝试自定义Eclipse,以加快开发速度,减少Android Java开发的干扰。

I am using SourceGear Vault for source control and installed the plugin for Eclipse. So to check stuff in/out, I have to right click on the Project/File, go to Team submenu, then pick a source control command (Check In, Check Out, Get Latest, etc...). I find this process slow. I'd like a button on the toolbar and a keyboard shortcut to do these operations.

我使用SourceGear Vault进行源代码控制,并为Eclipse安装了插件。因此,为了检查/输出,我必须右键单击项目/文件,转到Team子菜单,然后选择一个源代码控制命令(check in, check out, Get Latest,等等)。我发现这个过程很慢。我想要一个按钮在工具栏和键盘快捷方式来做这些操作。

I tried going to Customize Perspective, but under Team toolbar, there is only Synchronize command.
And I have no idea how to setup a shortcut for the SCC operations either as they are not present in Shortcuts tab.

我尝试自定义透视图,但是在Team toolbar下,只有Synchronize命令。我也不知道如何为SCC操作设置快捷方式,因为它们不在快捷键选项卡中。

Am I missing something simple?

我错过了什么简单的东西吗?

2 个解决方案

#1


35  

(Revised)

(修订)

Look in the Command Groups Availability tab of the dialog you get when you do the Customize Perspective and you should see an entry related to your VCS; turn this entry on and then go back to the Toolbar Visibility and you should see more stuff (under the name of the VCS). The Team area is not going to have what you want; the commands are grouped by the VCS name, like git, SVN, etc.

查看自定义透视图时得到的对话框的命令组可用性选项卡,应该会看到与vc相关的条目;打开这个条目,然后回到工具栏的可见性,您应该会看到更多的东西(在VCS的名字下)。团队区域不会有你想要的;这些命令按照VCS名称进行分组,如git、SVN等。

Sorry for the initial answer, I mis-read part of your question.

不好意思,最初的回答,我误解了你的部分问题。

#2


3  

I find that if you are currently using a base perspective that comes standard with the Eclipse install you need to: "Window -> Save Perspective As..." first. Then you can just customise the tool bar as you please.

我发现,如果您正在使用一个基本透视图,该透视图与Eclipse安装一起使用,那么您首先需要:“Window -> Save perspective As…”然后你可以根据自己的喜好定制工具栏。

#1


35  

(Revised)

(修订)

Look in the Command Groups Availability tab of the dialog you get when you do the Customize Perspective and you should see an entry related to your VCS; turn this entry on and then go back to the Toolbar Visibility and you should see more stuff (under the name of the VCS). The Team area is not going to have what you want; the commands are grouped by the VCS name, like git, SVN, etc.

查看自定义透视图时得到的对话框的命令组可用性选项卡,应该会看到与vc相关的条目;打开这个条目,然后回到工具栏的可见性,您应该会看到更多的东西(在VCS的名字下)。团队区域不会有你想要的;这些命令按照VCS名称进行分组,如git、SVN等。

Sorry for the initial answer, I mis-read part of your question.

不好意思,最初的回答,我误解了你的部分问题。

#2


3  

I find that if you are currently using a base perspective that comes standard with the Eclipse install you need to: "Window -> Save Perspective As..." first. Then you can just customise the tool bar as you please.

我发现,如果您正在使用一个基本透视图,该透视图与Eclipse安装一起使用,那么您首先需要:“Window -> Save perspective As…”然后你可以根据自己的喜好定制工具栏。