Using IntelliJ IDEA 15, I get these constant and annoying documentation popups whenever my mouse is anywhere in the code window for a decompiled class (from a 3rd party jar). It will popup docs for whatever variable/method/class/anything happens to be near my mouse. If my mouse is not near any lines of code, it will popup for the current classfile, so basically I can't browse code unless I move my mouse to another window.
It only happens with decompiled classes, not my normal code. How do I stop these?
Go to File>Settings>Editor>General - in the section 'Other', uncheck 'Show quick documentation on mouse move'.
In later versions of IntelliJ, the path is File>Settings>Editor>Code Editing, and it is under the "Quick Documentation" section.
In my cause, 'Show quick documentation on mouse move' was in Editor > Code Editing:
If you want the documentation bubble but not the popup window, do this:
Place your text cursor on some text which causes the popup.
Press ctrl + q (or whatever keyboard shortcut you have for quick documentation) a couple of times until the popup window disappears, the quick documentation will then revert to the "bubble" on hover.
Under the File/Settings/.., at the top search bar, type in for "Quick Documentation", will point to the location.
Press <F1> button to show/hide this pop-up.
Related
IntelliJ display Java code auto-completion suggestions in a drop-down menu after pressing CtrlSpace. All other IDEs manage to display the corresponding Javadoc if available. How to get IntelliJ to do that?
How to see JavaDoc in IntelliJ IDEA? refers to displaying it on a mouse hover event whereas I'm missing the Javadoc from code-completion suggestions.
Once you put a dot and the suggestions appear, press F1 (which is the default shortcut for "Quick Documentation" in most keymaps). The documentation for the currently selected method then appears as a card as show in the image. Then you can either use the up/down arrow keys or start typing the method name to select it. The documentation card will reflect accordingly.
You can also click on the pin icon on top right of the documentation card to expand it if required.
Hi I have to make a lot of searches in InteliJ and I want navigate between findings of searched text and code preview of specific file.
I tried to search it on web, and also combination of shortcuts like tab, ctrl+tab and many more but nothing work.. Do you know how to switch between those two windows?
right now I have to click it with mouse to focus on one of the windows.
The code preview window is intended to be used as exactly that - a preview, not a UI to be used for complex editing operations. If you need to do anything with the search results, use the "Open in Find Window" button to open the toolwindow with the results. After that, you can use for example Ctrl+Alt+Up/Down to navigate between the occurrences, or other keyboard shortcut to switch between the toolwindow and the editor.
I'm pretty new to IntelliJ, I also have Apple's new force-click enabled trackpad. Seems like it'd be super useful to be able to assign force-clicking to a keymap action (like bringing up a javadoc for example). Is there anyway to do this? Right now if I try to assign a force click it comes up as 'Button 1'.
Thanks!
This seems to be supported now in at least 2016.2, but you have to set it up.
For instance to set Force Touch to trigger "Go to Declaration" (navigate to function/class/symbol declaration), go to Preferences->Keymap. Then search for "Declaration". Right click the entry and select "Add mouse shortcut". In the popup, perform a force-touch hard-click. Apply and you're done!
I have some handy mappings set up in my ~/.ideavimrc some of which result in IntelliJ opening a new window/dialog box. For example the following line lets me type \t and it'll open IntelliJ's "jump to test" dialog box which lets me jump to an existing test or create a new test file:
:map \t :action GotoTest<CR>
This almost works great. The only issue is that when the dialog box pops up the focus is still on the editor window, not the dialog box. As a result I can't simply use the arrow keys to select my option and hit enter. Instead, I have to use the mouse. As a good code nerd, I abhor the mouse. So, how do I get the keyboard focus to change? Is this possible?
It's fixed in the master branch https://youtrack.jetbrains.com/issue/VIM-796, but the fix hasn't been released yet. You can download a CI build and help testing IdeaVim. See https://github.com/JetBrains/ideavim for more details.
A feature that I used a lot in Eclipse is the Search History, which remembers searches you performed in the past and gives you quick access to them. I cannot seem to replicate this functionality in IntelliJ - it seems that I have to start a new search each time. Does this feature exist, or does anyone know of a plugin that provides such a feature?
I think what you're looking for is the "Open in new tab" checkbox at the bottom of the "Find in path" dialog. For me by default it was disabled. When you enable it, you will have search results open in separate tabs every time, so accessing historic searches will be much easier.
For recent "Find Usages", open the "Find" window (Cmd 3); click the settings button in the "Find" window toolbar; in the settings dialog check the checkbox "Open in new tab".
Inside 'Find' dock press Alt+Down to see 'Recent Find Usages' dropdown.
Search history intellij alt up or alt down.
For in-file search there is Recent Searches drop down if you press the down arrow key, the same is available for the Find in Path dialog.
Alt+down arrow is what you are looking for...
First press Ctrl+Shift+f and then alt+down arrow
for more info check IntelliJ website:
https://www.jetbrains.com/help/idea/searching-everywhere.html#search_all
Using Alt+down works to see previous Finds, but by default only 1 Tab is open.
Of course the setting for opening new Finds in a new Tab can be found in a slightly different place than when the first answer was posted. It can now be found by right-clicking the top bar (or the "Show options menu" gear-icon) -> View Options -> Open Results in New Tab.
Click on the magnifying icon in the find window and you will see it. It is not intutive. I'd expect it to list the previous searches when I click on the text box window.
just when you user find by path, right corner of the search you will find the "open
in find window" there you will see history as shown in the image and you can pin the search history you need . just hit the <- arrow button in the left panel of find window, you would see the history