When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.
Related
I am using IntelliJ Idea for developing scala and Java programs. I am also a screen reader user.
One of the most useful features that IDEs provide is code linting and displaying error and warnings in your code, along with descriptions. I understand if you are a sighted user, you can just hover your mouse over an erroneous line of code and you get a tooltip with the description.
I haven't been able to figure out how to access this description as a screen reader users. So far, to review errors/warnings I would just build the program and look at the command line output, however this is pretty inefficient compared to just hovering over line of code.
Could someone share a better way of reviewing errors/warnings in IntelliJ using a screen reader? Ideally how to access the error tooltip, or how to access a better UI for reviewing them instead of looking at raw command line output.
I'm not sure about warnings however errors can be accessed in two ways:
Firstly when the caret is moved into a line with error the error text is written into the status bar - the problem with this approach is that for JAB applications screen readers are generally unable to find it, so in case of NVDA object navigation has to be used.
The second way requires your caret to be exactly at the point with error - generally it would be set in the proper place if you've navigated to the line with F2. After that you need to press CTRL+f1 - focus moves to the unnamed pane and the error text is its first descendant so once again you need to employ object navigation. I haven't found any reasonable way to access error texts with JAWS sadly.
Importantly, make sure to turn on screen reader support:
settings (ctrl + alt + S) > appearance and behaviour > Appearance > Support screen readers (requires restart)
Then when your caret is on an error/warning, you can press ctrl + F1 and a dialogue will pop up with the description. Press escape to close it.
If you want to make sure the caret is on an error/warning, use F2 to jump to next error/warning.
As noted by lukaszgo1 in his answer, the description is also printed to status bar, but NVDA cant find it using its normal command, because JAB GUI applications are lacklustre in their implementation of accessibility, however if you want to access the status bar of IntelliJ to read the description you can use an NVDA addon which I developed, that adds a command for reading IntelliJ status bar and fixes list items not being labelled properly.
I actually forgot I asked this until I got an answer recently.
Thanks to lukaszgo1 for his answer.
When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.
When I run a test in IntelliJ IDEA 13.01 Ultimate, with any luck it just passes. In those rare cases (ha!) when I get an exception, though, it displays that exception on the right side of the Run context, as is shown below:
The up and down arrows between the two panes can walk you through the stack trace, which is great. And they claim to have a keyboard shortcut, ctrl+alt+down and ctrl+alt+up. But these shortcuts do not seem to work with any obvious workflow, and I always wind up forced to use my mouse. This is, in fact, the only time I have to use my mouse in my IntelliJ IDEA workflow. What am I doing wrong?
shift-alt-F10 to select the test case I want to see.
The image below appears, except the two blue arrows are grayed out. This is true whether the editor window contains a relevant source file or not.
Using the mouse, click on an item in the stack trace.
The two arrows are now colored, and can be used by clicking on them. Their keyboard shortcuts, however, cannot be used.
The keyboard shortcuts seem to work occasionally, under conditions that I do not understand.
I am using the ideavim plugin--could that be an issue?
It's a known problem, feel free to vote for VIM-176.
Just like this question here:
IntelliJ: After hiding my "Output" sub-panel within the "Debug" panel, how do I get it back?
I canno get the log/console viewer back in debug mode.
The suggested solution in the given question no longer works the "restore layout" button does nothing, and the "certain spot" on the debug is extremely vague at best.
Is there a way to retrieve the console if it gets vanished (or better yet, just stop that button for vanishing it from even existing)?
I am using IntelliJ 12 Ultimate. If the restore layout didn't work for you either, this should fix the problem:
Open the Debug panel.
Keep mouse on the Debug tab and move it straight right to the Watches icon.
You may see a few more more icons here, and Output may or may not be visible (not visible for me)
If visible, click it and the Output view will be restored.
If not visible, move your mouse slowly to either side of the Watches icon and an empty block would highlight indicating that you are hovering over an icon. There may be several of these. Use tooltip to figure out which is Ouput and click it.
Worked for me, I hope it works for you too.
click the button on the left of Debug View called "restore layout",then the console will go back in the Debug View! 1
Syed explained it pretty well, but a picture could be even better:
A view can be hidden via its context menu, then restored by clicking the corresponding icon (with red circle) to the right.
You can restore the layout using this button as of 2018.1.8
In 2016.2, I had to re-run in debug mode for it to reappear. I could not find a way to un-hide the console in the debug window.
You don't say which version of IntelliJ you're using, but I've just tried this in version 12 and the console window minimises to the far right of the debugger tabs. Look at where it says 'Debugger' and then eyes right until you see one or more icons over the Watches panel. Try clicking on them. If you're not using version 12, then only god can help you :)
In v. 2020.1 there is Layout Settings on the top right corner of Debug window
I've just spent an hour trying to get my console output back, and although this answer didn't solve it, it did help.
I'm on Intellij 11.1 Ultimate Edition, and Restore layout didn't help. Nor did I have any icons above the Watches window in the debugger, but I clicked around above the Watches anyway - and suddenly my console output was restored.
I've tried clicking around there again to see if I can provide more concrete steps, but without success. Can only suggest you keep clicking till it reappears.
when i launch the commit dialog (thg commit), the focus is on the commit message. this is probably the most common place it should be. in my case, i typically want to review the files i have changed and make sure i'm committing what i think i'm committing and not anything i don't intend. the only way i have found to get to the file list to be able to use ctrl+d to view visual diffs is to use the mouse. tabbing doesn't work because in the commit message input control, it just creates tab characters.
is there a way to use the keyboard and avoid the mouse altogether to move the focus to the list of files?
thanks for any help you can offer.
I've had a quick skim through the source, and also had a look at the wiki, and it seems there's no quick "official" way to do it.
One way I have found, which involves a lot of tabbing, is the following sequence:
$ thg commit
and when the window comes up, do CTRL+F, which puts you into the "Regular Expression Search" box. Then press TAB a lot of times (10 when I just tried it, but it will vary), until you get into the file selection box. Not great, but it sort of works... I do wonder if reaching for the mouse may be quicker, tho' :)