shortcut for 'update to HEAD' - eclipse

is there any way to have either
shortcut or
icon
for svn Update to HEAD of one project (not all of them) in eclipse? It would make my life much much easier.
I have few php projects though. Time to time I click 'commit' by accident.
Running Eclipse for PHP Developers - Helios release - on OS X.

I'm posting this to help anyone interested since I got a lot of grief before figuring this out..
You have to go to Settings > General > Keys and bind the shortcuts as the others have said.
I have:
Commit: Ctrl + Alt + C
Update to HEAD: Ctrl + Alt + U
Synchronize with Repository: Ctrl + Alt + S, all "In Windows"
But, in order for the shortcuts to work, you must go to Window dropdown menu > Customize Perspective > Command Groups Availability and there check the SVN box.
With this option you also get a dropdown menu called SVN with all the relevant commands.
Selecting the file/package/project/working set and pressing the keys does its magic.

In preferences go to Bindings
Sort by category
Find SVN
Assign a shortcut to "Update"
Mine is Ctrl + U

Go to preferences and type "Bindings" in the search at the top and play around with that. You can't bind a button to it, but you might be able to bind a key to do what you want.

Related

Adding Alt + Space shortcut in Eclipse

I am using win7 and eclipse with Aptana plugin for trying some examples on Ruby. But I can't figure out how to add Alt + Space as a shortcut in Eclipse (I want to add it to complete already defined variables). The issue is that when I try to add that combination (Eclipse reads the keys clicked) and the menu window appears in the top left -> it is shown when you hit the Alt key.
Does anyone has a hint how to add the shortcut?
I found similar post, but don't know how and where to add the code there.
Autohotkey, remap Left Alt + Space to Control + Escape
In Eclipse, the code-completion shortcut is Ctrl+Space (it's called Content Assist in Eclipse lingo). Is that what you're looking for?
I'm pretty sure it can be mapped to a different keyboard combination. Open Preferences and navigate to General > Keys and then search for the Content Assist command to re-map.

Assign "Ctrl+S" to Subversion commit

In NetBeans, how can I make it so that every time I save a file it gets committed to Subversion?
This sounds like a recipe for disaster!
That being said . . .
Go to Tools : Options in the menu.
Go to the Keymap tab.
Type commit in the Search box.
Locate the row for "Commit..." / "Subversion".
Double-click in its Shortcut cell.
Press the desired shortcut (e.g. Ctrl + Alt + Shift + S).
Click the OK button.
As committing a file automatically saves it first, you could use Ctrl + S as the shortcut if you wish.
Note that this also works when you select one or more files in the Projects pane. Thanks for asking the question as I get really sick of navigating through the popup menus all the time. :)

Why are refactoring shortcuts in eclipse missing on mac os?

I'm using Eclipse 3.6.1 on Mac Os.
In an earlier Version of Eclipse I hat a lot of nice refactoring shortcuts like:
Command + Alt + M extract method
Command + Alt + I inline
Lately if I press Command + Alt + M; I insert µ instead of extracting a method and Command + Alt + I; inserts ^. The shortcuts are also not shown in the refactoring menu anymore.
Those missing shortcuts really slow me down.
I think the shortcuts are not shown/active because the native Mac OS shortcuts take precedence.
How can I re enable those shortcuts?
UPDATE
I just installed Eclipse Indigo and the Shortcuts are missing again. I use them all the time and replacing code with µ all the time is very very annoying.
Has anybody encountered this problem as well?
In general, you can use the Command + Shift + L shortcut in any given editor to see a list of available keyboard shortcut... and a second Command + Shift + L will display a popup with all possible shortcuts in your Eclipse (can be filtered for "extract method" for example).
That would at least allow you to see the current shortcut for any given action.
If you go in Preferences... -> General -> Keys, search for the description of the action that doesn't work in the list. Once selected, look whether there's a conflict (in the conflict list below). There's a chance there's a conflicting shortcut set up for another action (possibly by another plugin).
Once you've identified the other conflicting action, look for it in the list: you can then either unbind it completely or change it scope (in the When drop-down list) to restrict it to a particular plugin for example.
Do you use Aptana plugin, or any other plugins? In my case I was able to bring shortcuts back by uninstalling Aptana.
I just did a clean install of the 64bit version of Eclipse and the shortcuts reappeared.

How do i use eclipse efficiently by making maximum use of keyboard

I mean to say which and all shortcuts from key board is available while working on eclipse?
like how Ctrl+F11 is for run project like that.
Effective Eclipse: Shortcut keys
Useful Eclipse Shortcut Keys
10 Eclipse Navigation Shortcuts Every Java Programmer Should Know
You can define your own:
FAQ How do I provide a keyboard shortcut for my action?
Provider by MatrixFrog in comments below:
Hidden features of Eclipse
Press ctrl + shift + l it will open shortcut key menu.
Note:-
Beside this also some other short cut will available. If you tell us functionality you wanna access we can tell you the short cut for it.

what's the keyboard shortcut to toggle breakpoint in pydev using eclipse

I think I'm missing the elephant in the room but for the life of me I can't find the keyboard shortcut to setting a breakpoint in eclipse when using the pydev plugin.
Things that I've already tried:
Ctrl + Shift + B: does nothing.
Ctrl + F10: brings up the breakpoint context menu where you can select to add breakpoint, remove etc... I don't want to have to scroll through a menu every time I want to use a keyboard shortcut.. .kinda defeats the purpose of a shortcut.
Clicking on the strip on the left hand side of the code: this is the only way that I'm setting it atm, but I'm rather avoid using the mouse if I can.
I'm using pydev 1.6.1 on eclipse 3.6
EDIT (31/08): In light of the two answers by codedevour and Tao, I've tried editing the shortcut but have had no luck with the new shortcut Ctrl + Shift + Alt + B either. Other shortcuts work. I've also tried changing the "When" drop down from In Windows to 'Pydev editor scope' with no effects.
From what the editor is telling me, there is no conflicts with the breakpoint shortcut.
This is a fresh install on two machines, both windows 7 and it's happened on both machines.
Finally found it!
The answer is here:
http://www.mail-archive.com/pydev-users#lists.sourceforge.net/msg04234.html
In short, shortcuts are not set for all perspectives of eclipse.
Whilst in the pydev perspective, go to Window > Customize perspective > Command Groups Availability > Check breakpoints.
That's it!
I was using the pydev perspective (which is what it switches to when you first create a pydev project) however, breakpoint shortcuts are only available in the debug perspective by default so you need to turn the shortcut on... wow that was so NOT obvious!
Ctrl + Shift + B
If this refuses to work, have a look at Window > Preferences > General > Keys and look for overlayed keys which may shadow this shortcut.
Ctrl + Shift + B works for me and I am using pydev 1.6.1 with eclipse 3.6.
Perhaps, you have a conflict with another program? Try change it under menu Window > Preference > General > Keys > Toggle Breakpoint to another keyboard shortcut.
On recent pydev versions:
Go to Window > Perspective > customize perspective...
And in tab "Action Set Availability", check "Breakpoints"