Find in Eclipse overwrites Linux clipboard - eclipse

I have this little annoyance with Eclipse under Linux.
Let's say I select some text in a terminal window, maybe an error message. Then I go to Eclipse and open Find/Replace (Ctrl+F) to search for the error in my code. But then, some text in the Find box is auto-selected, which overwrites what I had in the middle-click buffer. So I have to clear the Find box, go back to the terminal and re-select, then back to Eclipse and paste in the search box.
Is there any trick around this? Can I make Find open with an empty search box? Or should I just learn to use Ctrl+Shift+C and Ctrl+V to copy from a terminal to Eclipse?

it's a known issue...
not sure it's gonna be fixed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=415939

Related

is there a way to toggle search window results in eclipse

I am not sure if this is a bug, I tried uninstalling and reinstalling eclipse but seems like the problem has been saved in cache somewhere. Whenever I do a file search or C/C++ search with eclipse (either by clicking on the icon, or by typing ctrl+H), I do not see a search window pop up with results.
Same thing when I right click on a term and look for references or declarations in the workspace/project. I only see the occurrences Highlighted in the files, but that means I would need to manually check each file, which is just not doable. I also tried resetting the perspective, no luck!
Results in highlights, but no result window on the right side like there normally is:
I do not understand why this happens, I wonder if I disabled the search windows with a shortcut, this already happened with disabling the breakpoints and it took me a while to figure it out. Is there a way to toggle the appearance of the window? And if it really is a bug, how can I destroy all of the program's cache, because uninstalling by itself didn't work, there was a few settings that remained with the fresh installation.
Thanks!
There is a setting in the Search Preferences:
Window->Preferences --> General->Search
Then the search view should open up after starting the search.

Choose-Command popup in Eclipse

I would like to ask if there exists some functionality in eclipse where it's possible to choose all available commands, instead of having to remember all the shortcuts.
Something like the command palette in sublime text 2. Where you by pressing ctrl+shift+p (windows/linux) get an input popup box where all availble commands can be choosen.
Does such a feature exists for eclipse, or should I develop it by myself?
Thanks in advance.
I just bumped into this feature by accident but looking up to see if I figure how to get to it. it looked like it popped up when I started typing after having launched eclipse without focusing on any particular view... more to come as soon as I find out for sure.
EDIT: Apparently when you first launch Eclipse the focus is on the "Quick Action" search box on the top right of the tool bar and that's where you can start typing command names for it to list and let you pick in good Sublime Text style. Not sure how to shortcut into the box other than clicking it, but apparently there's the feature.
EDIT#2: http://www.vogella.com/tutorials/EclipseShortcuts/article.html#shortcuts_overview describes Ctrl+3 as being the shortcut to get there, on the Mac it translates to Cmd+3.
I haven't been able to find anything, so I have started on developing my own plugin.

How Do I Switch Between Multiple Eclipse Windows (in "Split Screen" Mode)

Eclipse allows you to open more than one text editing "window" at a time to get a "split screen" effect. This is great, but the problem I'm having is that there doesn't seem to be any way to switch between these windows, directly.
Now, you can use the usual commands (Ctrl+Page Down, CTRL+e, ALT+RIGHT, etc.) to switch between specific buffers. In other words, if I have window 1 with A.java and B.java open, and window 2 with C.java open, I can use Ctrl+Page Down to go from A, to B, to C. However, I can't just go from A or B (ie. from window 1) in to C (ie. to window 2), unless I use CTRL+e and type in "C.java".
There are half a million Eclipse commands though, and they're certainly not all labeled consistently, so it's quite possible I'm just failing to find the relevant command. Does anyone out there in SO-land happen to know it?
By default, its Ctrl+F6. However, its useful if you map you keys to Ctrl+Tab to switch between open editors like Windows.
You can change your preferred keys in Window>Preferences>General>Keys and change "Next Editor" to any key of your choice(Ex: Ctrl+Tab). Hope this is what you needed.
This can be achieved easily if you are using Vrapper in Eclipse. Vrapper
is a Vim plugin for Eclipse. If you are trying to maximize your productivity in Eclipse like we all are, it's well worth the try.
Once you got it installed, check out the Split Editor Plugin for Vrapper. You can then create splits on the fly and switch between them using the standard Vim shortcut: Ctrl-w w
Bonus: don't forget to maxmize your editors using Ctrl-m. If your editor ever loses focus for some reason, regain it by pressing Ctrl-F12
Finally open any file in your project using Ctrl-Shift-r
Edit from anula comment:
A useful thing to mention here: Ctrl-w by default binds to closing window, so if you want to use it as in Vim you need to first go to Window->Preferences->General->Keys and unbind "Close".
You can install the HandySplit plugin from Eclipse Marketplace and bind its 'Toggle focus between split editors' command to any keyboard shortcut you like.

Disable Eclipse ctrl-click

I'm very used to having Ctrl-click select the word below my cursor and in Eclipse the authors seem to think it's better to make it move to the definition. I disagree, but can't find how/where to fix this. Searching on the internet and on here as well leads to hundreds of people wanting Eclipse-style Ctrl-click everywhere - I want to get rid of it.
How?
Go to Window - Preferences - General - Editors - Text Editors - Hyperlinking preference page,
uncheck the option Open Declaration
For the selection part:
I use AutoHotKey with the following script:
#IfWinActive ahk_class SWT_Window0
^~LButton::Send !+{Up}
The first line makes sure the macro is only run when eclipse (SpringSource Tool Suite in my case) is active. Use AHK's built-in 'Window Spy' to check the window class for different IDEs.
The second line sends Alt+Shift+Up (default select word shortcut) when you Ctrl+Click in the IDE
Close Eclipse.
Delete: /path/to/workplace/.metadata/.plugins/org.eclipse.jdt.core
Open eclipse and let it rebuild its indexes. Job done.

How do I customize the behavior of "cut" in Eclipse?

My normal IDE is Visual Studio, but I'm currently doing some development in Eclipse for the first time. If you press Ctrl-X with text selected in either program, it cuts the text and puts on the clipboard exactly as you'd expect. If press Ctrl-X with no text selected in Visual Studio, it cuts the current line. In Eclipse it is ignored. Is there a way to get Eclipse to use Studio's behavior?
http://code.google.com/p/copycutcurrentline/
I haven't found a way to make Ctrl+X context sensitive, but I did find that you can bind a key to the "Cut Line" command by going to the Window -> Preferences -> General -> Keys dialog. Unfortunately this always cuts the entire line, even when you have only part of it selected. Maybe binding another key to this command will work for you?