keyboard shortcut to jump to cursor - intellij-idea

What is the keyboard shortcut to jump the editor view back to where my cursor was last placed?
For example I often scroll to the top or bottom of the editor view other parts of the code, and I would like to be able to quickly jump back to the last section I was viewing.

Scroll to Center looks like what you need.
Ctrl+M on Windows, not set by default on Mac, but can be customized in the Keymap.
If you are not in the editor, you will need to hit Esc first to focus it.
There is also Navigate | Last Edit Location, but will navigate you to the last place you've edited, not just viewed.

Related

Lost my toolbar in Jgrasp how to get it back?

lost my toolbar buttons in Jgrasp I accidentally clicked the "X" button on the thought it was the exit button checked settings but too afraid to click a button that will change the environment again, here's the result,
Thanks!
The toolbar is language specific, so the toolbar goes away unless you have a file open. Since you pressed the X button, the file was closed, and thus, the toolbar went away. If you open up a new file (By clicking the folder icon on the far top left and selecting the previous file), it will bring back the toolbar.

Intellij documentation popup hides warning popup

In the Intellij Settings I activated Editor > General > Show quick documentation on mouse move and I like it. But when there is a warning message also shown as popup when the mouse hovers over, then the documentation popup just hides the warning like this:
Well, that's not nice. Is there a way to solve that?
The are a couple of alternatives to displaying the quick documentation as a popup:
Display the quick documentation in a separate panel.
Display the quick documentation in a floating window.
To display the quick documentation in a separate panel:
Position the mouse so that the quick documentation popup is displayed.
Click the Options icon in the bottom right of the popup.
Select Open as a Tool Window from the drop down menu.
After doing that the quick documentation popup is displayed in a panel on the right. It is still automatically updated as you move the mouse.
Alternatively, to display the quick documentation as a floating window:
Click the Options icon in the top right corner of the panel.
Select Windowed Mode from the drop down menu.
After doing that the quick documentation is shown as a floating window which you can position wherever you want. You could even place it on another screen if you have multiple screens. Again the content is still automatically updated as you move the mouse.
Select Open as a Popup from the Options drop down menu on the panel or the floating window (or press CTL/Q) to revert to using a popup for the quick documentation.
The best choice is a matter of personal taste, but both of those approaches would solve your overlapping popups problem.
Update:
The previous screen shots were produced using IDEA Ultimate 2018.1 EAP. With Ultimate 2017.3 it seems that the situation is slightly different. After clicking the Options icon, only a control to adjust the font is shown. In that case click the Pin icon in the top right of the window:
After doing that click the Options icon in the top right of the window to see the menu options:

How to hide the div structure thing next to the editor tabs

There's a colored bar at the top of the Intellij IDEA editor, which shows the div structure. Does anyone know how to hide that? Because everytime I move the cursor to the editor tabs, I cross over the bar which makes the editor blink. (Maybe a better way is to keep the bar, but turn off the blinking when the cursor moves across the bar. Is it possible to do that?)
You can disable it by unchecking Show HTML breadcrumbs in Settings/Editor/General/Appearance.

Docked view of breakpoints in IntelliJ IDEA

I am trying to get a permanent view of breakpoints (or at least lasting until I remove it) docked next to the Debugger panel. E.g. I would like it to take place of Watches, since I do not use watches much. Currently, viewing breakpoints is done by clicking the small double circle icon in the Debugger but that pops a new large window that occupies most of the screen. I would like a small and permanent view of breakpoints (just like the one in Eclipse).
If you open up the Favorites tool window (Alt+2) you will see the breakpoints.
You cannot put this window inside the Debug tool window but you can have it docked above or beneath (or anywhere you want).
Like this:
Or like this:
The last image shows the Debug window docked with the Split Mode Off while the Favorites window has Split Mode On
CTRL + SHIFT + F8 works for me
IDEA 2017.1.3 allows breakpoints to be edited (e.g enabled/disabled) from the Favourites window (right click, Edit breakpoint).

Is it save to remove Main Menu?

I'm writing an agent (so no dock icon or menu bar) based around a status item. The Main Menu never gets displayed. Can I remove it without problems?
If the user could want to use any keyboard shortcuts while interacting with your status item, then you'll want to keep the main menu around. Even when it's not visible, an app's main menu is the provider of keyboard shortcuts like Copy and Paste.
Learned from hard experience.