Copy the content of ScalaCheck IntelliJ Tooltips - scala

When I write scala code in IntelliJ. Sometimes IntelliJ shows me somethings which I can improve in my code. Ex
The moment i move my mouse the tooltip disappears.
This is very nasty because I can't copy the content of the tooltip into the clipboard and then google it.
I clicked on the event log windows of the IDE but even that doesn't show the content of the tooltip.
Any idea how I can copy the content into the clipboard?
I already tried Analyze -> Inspect code. even there the content of the tooltip in the screenshot is not available.

Try Alt+Click to copy as described here:
https://youtrack.jetbrains.com/issue/IDEA-65636

Related

How can I keep my code visible in Eclipse while searching?

I click CTRL-F to find a string in Eclipse Oxygen.2 (4.7.2) on Ubuntu 18.10, and the code gets grayed out.
See the code behind the Find dialog in the screenshot.
Since I typically need to step through a few instances of the target string, this is frustrating: I have to close the find dialog to see the text.
How can I keep the code from being "grayed out" while I Find text?

Copy text of error msg from circled-X in Eclipse source editor

I'm trying to fix literally hundreds of XML validation errors in a Java webapp using Eclipse. Researching them with Google has been excruciatingly painful, because up to now, this has been my workflow:
Open Google in a browser.
Click in the Eclipse editor tab where the error (shown as an icon at the start of the line that's a red circle with a white "X") is located, mouseover, and try to memorize a chunk of it.
Click on the search form in the browser, and attempt to replicate the chunk from memory.
Repeat steps 2-3 until the text in the search form matches the text Eclipse ephemerally displays on the screen. Usually, something like:
"cvc-complex-type.2.4.d: Invalid content was found starting with element 'description' No Child element is expected at this point."
(that's just one error out of thousands, shown for illustration. I copied it from memory in 5 or 6 chunks)
At the moment, it's blowing my mind that there doesn't appear to be any easy way in Eclipse to do something like right-click the error icon & choose "copy error description"... or at least display it in some way that will survive giving another window the input focus so I can read it while typing it into the search form.
I know there has to be a better way to do this.
I suspect the error descriptions are present somewhere on the "Problems" tab, but I literally have almost 10,000 Errors & Warnings there, and no obvious way I'm aware of to sort or filter them. Is there maybe some keyboard modifier + mouse action that will allow me to click the red/white X icon and have Eclipse take me directly to the error on the Problems tab?
Good question, and I feel for you, there is a slightly easier way. I'm running Eclipse Kepler but I suspect this will work for you too.
Roll your mouse cursor over the problem x icon in the editor gutter (if you're showing line numbers it will be in that area), wait till the tool tip displays the error message, then quickly move your cursor over the tool tip and click within the text, then you can select all (Ctrl + a) and copy (Ctrl + c), then paste wherever the error description.

Eclipse IDE lost popup menu suggestions

I've seem to have lost the ability in my Eclipse to auto-correct errors in my source code lines.
For example, a line like this:
Date date = new Date();
has red jagged lines beneath the Date() part. Previously I could mouse hover over it see a popup menu of options to fix it. Now I all I ever get is a popup with the text "Cannot resolve to a type".
The only change I can think of that I've made and I don't know if it has anything to do with this problem, is that I started editing my .java files with an outside editor. Then focusing back into Eclipse I get a popup saying the source has changed and do I want to update so I say OK.
Sometimes I will edit inside Eclipse and sometimes i will edit the source outside of Eclipse. I'm not sure if this is a bad practice or not?
Its your wish to edit Java files outside or inside eclipse. But Java editor has many features which are very helpful to developers. I suggest to edit Java files inside eclipse only.If you find other editors are good or you used to it then no problem you can edit Java files out side eclipse also. The problem you mentioned in not related to it. But make sure that changes are applied before building project in eclipse.
Solution
This occurs whenever there are multiple classes are available with the same name in you build path then eclipse don't know which one to import by default. So keep the caret on the error line and press Ctrl+1. Then a eclipse gives options to user to import one among these. See the picture below. Choose the right one then error will disappear.

Eclipse: Edit code parser

I am using a plugin for Eclipse (The Eclipse plugin of SDCC).
This works fine (so far) but the problem is the inline assembly..
it is pretty annoying that the parser marks this code as syntax error
and furthermore that it marks symbols which are defined in a header file.
Therefore I want to extend the plugin a little bit such that the parser(s)
ignore the inline assembly part since the SDCC compiler will complain about it
anyway if it finds an error.
I've seen that there is an error parse since CDT 7.0 but I am not sure if this is
the right place to look at.
Can anyone help?
Place mouse pointer over highlighted code, then press F2 to have focus in popup suggestion window. At left corner of this window exists icon, click on such icon opens problematic item.
By setting/removing checkbox 'Text As', editor with highlighted code will be change view as well.
Usually they are all accessible through Window->Preferences->General->Editors->-Text Editors-> Annotations.
I used it on kepler CDT.

Is there a way to copy code from the Eclipse IDE without the rich-text formatting?

Recently every time I copy a block of code from Eclipse and paste the code into TextEdit or a online forum using the code tags, I get the code with the rich-text or html formatting, so I have to copy into a text editor remove the formatting copying and pasting again, In the past this was not a problem I used to copy from eclipse and paste the code without any formatting at all just as plain-text, I dont know if I turn on a property or what I did for this to happen, any ideas how to fix this?
There is an Eclipse bug filed for this that can be voted for:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45969
It has been open for 10 years though!
There are applications out there that think they can handle rich text but can't. So for those it looks like we'll have to carry on with "Copy-Switch to Notepad-Paste-Select All-Copy-Switch to final app-Paste" for some time yet.
Note: the rich formatting from a SWT editor seems to have always been available (bug 64498).
You could use "Edit, Paste and Match Style" in TextEdit.
From the Edit menu, choose Paste and Match Style,
or use the keyboard shortcut, Shift Option Command V.
The pasted text will pick up all the formatting from the character to the left of the flashing insertion point. This technique works in Mail as well.