Eclipse同步热键 [英] Eclipse Synchronize Hotkeys
本文介绍了Eclipse同步热键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在日历的同步面板中有一个按钮全部上传更改。任何方式点击它没有鼠标?在prefs-> general-> keys中没有这样的动作
There is a button "Upload All Outgoing Changes" in Synchronize panel of eclipse. Any way to "click" it without mouse? There is no such action in prefs->general->keys
推荐答案
我为此创建了一个自动热键文件。 http://www.autohotkey.com/
希望你喜欢!
I created an Auto Hot Key file just for this. http://www.autohotkey.com/ I hope you like it!
; Eclipse Synchronize Override Upload
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Taylor York <taylor@tyec.co>
;
; Script Function:
; Upload Files to the Synchronize Window in Eclipse
;
;#NoTrayIcon
#SingleInstance force
DetectHiddenWindows, on
; the title starts with
SetTitleMatchMode 2
SyncAndUpload() ; Function
{
; Get to the Synchronize Tab
Send {ALT down} ; Hold Alt+Shift+Q down
Send {SHIFT down} ; Eclipse seemed to dislike pressing every key at once
Send {Q down}
Send {Q up}
Send {SHIFT up}
Send {ALT up}
Sleep, 250 ; wait 250 milliseconds
Send y
; Click Override and Upload
Send {Space} ; When you go to the Synchronize tab, you have to select something. Space selects to top item
Send {AppsKey} ; "Right Click" / Context menu the item that is selected
Send {o 2} ; Press o twice (Override and Upload is the second O)
}
; Make sure we are in Eclipse, so we dont hijack other apps!
#IfWinActive, ahk_class SWT_Window0
{
#IfWinActive, PHP ; Title starts with PHP (this is used so it only works in PHP mode.
{
^T::
{
KeyWait Control ; Wait to run until all keys are let go
KeyWait T
SyncAndUpload()
return
}
^S::
{
KeyWait Control ; Wait to run until all keys are let go
KeyWait S
Send ^S
Sleep 250
SyncAndUpload()
}
return
}
return
}
;endofscript
这篇关于Eclipse同步热键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文