I am using the Intellij to view the codes.
I usually use ctrl + B to go to declaration and find the detailed implementations of the codes. However, I have no idea about going back to previous position where I started. So, I clicked the tab whenever I want to go back to the previous screen and this behavior is very annoyed and time consuming tasks. Do you know the short-cut of how to go back previous screen to debug the codes more quickly?
Go to next/previous editor tab
Alt + Right/Left
Navigate back/forward codes
Ctrl + Alt + Right/Left
Also Navigating Through the Source Code will help you.
Related
I’m not sure what are these called:
I mean the Show code with my wire stats, Show Memory indicator, etc..
Basically, I’m mostly interested so this autocomplete menu would only show files, or at the very least would prioritise files. How can this be achieved?
I’m in version 2022.2.1.
That popup is called Search Everywhere and you are on an "All" tab that includes combined results from Classes, Files, Symbols, Actions etc.
Either manually switch to the desired tab (using a mouse or by hitting Tab needed number of times) or invoke this popup for the desired search from the start. For that just use the shortcut for Navigate | File... (Ctrl + Shift + N here on Windows keymap).
https://www.jetbrains.com/help/idea/searching-everywhere.html
Found the solution.
These things are called Actions, and the can be disabled in menu that appears after clicking the small funnel icon in the top right:
I tested, these changes seem to 'survive' a restart.
Yes, at the moment it is remembered only during the session.
https://youtrack.jetbrains.com/issue/IDEA-229285 -- watch this ticket (star/vote/comment) to get notified about any progress.
(P.S. The same happens with Find in Files popup (IDEA-143972) and a few others similar popups as well)
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'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.
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.