I'm using Eclipse 4.4.1 on Mac OS X 10.10.2. Menu File > Properties has a hotkey Cmd+I. But pressing that does not bring up the same window showing the properties of the .java file open in the editor window. Any ideas?
BTW, do people have a sense if SO is any better than than https://eclipse.org/forums/ for getting quick replies?
In the Java editor Cmd+I is bound to the 'Correct Indentation' command, this takes precedence over the Properties binding when you are in the editor.
Look in 'Preferences > General > Keys' to see the key bindings. Click on the 'Binding' column to sort by the key binding to see all the bindings for a key together.
Related
When Using Pydev on Eclipse, I wanted to bind Ctrl+Shift+D Copy Lines and Ctrl+D to Delete line. But when I do so, the Ctrl+Shift+D doesn't work.
I removed all the other bindings of Ctrl+Shift+D but it doesn't work.
Fun fact, if I choose Ctrl+Shift+C, it does work, so I'm wondering where is this key binding used.
The problem arrises only in Pydev, ie. when I open the file in Text editor the bindings work.
This was fixed for PyDev 6.3.3.
The problem was that there was a command bound to Ctrl+Shift+D which was not visible there because it wasn't properly categorized.
I fixed this in: https://github.com/fabioz/Pydev/commit/422a0bde1d1a3ac5c091c00e88368a3bc3c0dc5f
Note that you could still override it if at the keybindings dialog you created a command and put the 'When' as 'PyDev editor scope' (which defines when it's active -- it wouldn't work without this because the hidden action had a higher priority given that its scope was narrower).
See details at: https://www.brainwy.com/tracker/PyDev/906
In the Eclipse Juno I cannot unbind the CTRL+ALT+W, because the binded command (show properties in SVN) is working with this binding, meanwhile there is no any bind to CTRL+ALT+W in the Preferences / General / Keys tab. Moreover, I unbinded all of bindings to W.
The problem is that the ALTGR+W (CTRL+ALT+W) is the '|' (pipe) character in the Hungarian keyboard layout. So, I cannot type '|' in the Eclipse.
Maybe, are there the hidden keybindings somewhere?
I have found the resolve!
All keybindigs stored in [your-workspace]\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi, and I found here the CTRL+ALT+W (I don't know why not visible in Preferences). I changed it to any other key, or insert a <tags>deleted</tags> into the bindings tag. (I had exited from Eclipse before did it).
Once restarted the Eclipse the CTRL+ALT+W is freed.
Now the ALTGR+W types the '|'. That was my goal!
As was asked previously, Eclipse has the nice "mark occurences" feature, which shows all occurences of the selected variable or method.
But I don't know any shortcut for jumping to the next/previous occurence in the editor.
The shortcut ctrl+k is not working, it solely works in conjunction with "incremental find" (ctrl+j).
I'm using Eclipse Indigo. Is there any shortcut or other solution?
Edit:
The answers and comments in the question linked above are now pretty exhaustive, I think.
It seems there is no all-in-one solution (at least for Java code editing):
I cant get Ctrl + (period) to work, at least in Java code where it finds the next problem. Even rebinding this to a different shortcut does not work.
Ctrl + K does text-based search only. If you want to find all occurrences of the variable i, it finds any letter i within any identifier and comment.
Renaming mode using Alt+Shift+R and then navigating through the occurrences using Tab and Shift+Tab comes close, but only works for identifiers you can actually rename for that source file. It does not work for library code (esp. JDK) for which no editable source is available.
Try Ctrl + , and Ctrl + .
Before that make sure you have checked Occurences in the small navigation dropdown:
You can change the key from Window -> Preferences -> keys:
It works for me.
You can find if your key bindings have changed by looking under Window -> Preferences -> General -> Keys and look for the command Find Next. You will see the binding in the column Binding and can also check if it's conflicting with something else in the list titled Conflicts: at bottom right corner of the dialog.
Is it possible in Eclipse to assign Control-M key to newline?
Windows XP + Helios.
I don't know for sure, not having done it myself, but investigate the key binding dialog Window > Preferences > General > Keys. See page 362 of the 3.1 documentation for more.
In Window > Preferences > General > Keys,
redefine Insert new line Below current line, and Bind Ctrl+M.
Be careful, by default, Control-M already toggles maximize/restore state of active view or editor. this will override the shortcut.
It's often a bit of a pain to type something like MY_LOGGER_SET_CATEGORY(LOGGING_CATEGORY); That would make sense to assign a shortcut like CTRL + X + S which can easily be done in editors like VIM, for example.
I was wondering if there exists a plug-in or a feature to do similar in Eclipse?
go to
Preferences -> Java - > Editor -> Templates
then add new
in name put for example "mlsc"
MY_LOGGER_SET_CATEGORY(LOGGING_CATEGORY);
then in edit windows when you type mlsc it will be put in there.