Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA back/forward with mouse

I want to move back/forward between editor tabs, using the two additional ("virtual") mouse buttons I have (RAZER DEATHADDER BLACK).

In Eclipse it's possible by default.

In IDEA I go to File->Settings->Keymap->Main menu->Window->Editor Tabs.
There I have Select Next Tab with the deault Alt+Right shortcut.

Then I open the Add Mouse Shortcut.
In that dialog I try to assign the back button of my mouse but without success. It doesn't react at all.

Anyway, googling a bit I've found this thread. I quote Alexey Gopachenko which seems to be an employee of IntelliJ:

As stated above - we can't support buttons if JDK on your platform does not support them - and obviously it does not.

Anyway, that is totally wrong. My platform does support these keys - I actually work with them, on the same platform, on Eclipse and any other app, so it's IDEA who ignores them.

I'd appriciate a solution - how do I assign these back/forward mouse buttons?

UPDATE #1 I've found out that IDEA uses its own JAVA distribution (C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1.4\jre on Windows 7), instead of the system's one - WHY?!
I'm almost SURE that is the reason I cannot use extended mouse buttons.
I've tried to trick IDEA by creating a custom Windows shortcut. Didn't work. I've also tried to create a SYMLINK in windows to my other, system-wide JRE distribution. Didn't work as well.
If someone come up with an idea on how to make it work with the system's JRE instead of its own - I think that'd solve the issue.

UPDATE #2 The above update #1 is not the issue.

like image 977
Poni Avatar asked Jan 16 '13 13:01

Poni


People also ask

How do I go back and forward in Intellij?

To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace .

How do I go back to a call method in Intellij?

To navigate to the next or previous important call On the menu bar, choose View | Navigate | Next Important Call or View | Navigate | Previous Important Call. Press Ctrl+Shift+Right or Ctrl+Shift+Left .

How do I get navigation arrows in Intellij?

Turn the toolbar on, with View > Toolbar. Right click it, and choose "Customize Menus and Toolbars". In the "Navigation Bar Toolbar" folder, add the icons from Main menu > Navigate > Back / Forward, choose OK, then go and turn off the toolbar with View > Toolbar again.


2 Answers

I also had the same problem under OS X El Capitan. I just tried to add a new Keyboard-Shortcut and pressed than the Button 4 on the mouse and this worked.

view Screenshot

like image 138
David Gräßer Avatar answered Oct 11 '22 00:10

David Gräßer


Back/Forward mouse shortcuts work fine for me with Razer Mamba mouse, for example Back action is assigned to Button4 Click and I can confirm that it is recognized in this dialog when I click on the Click Pad area:

mouse shortcut

If it doesn't work with your mouse for some reason, you can try to workaround the problem using the Razer Configurator macro or key assignments:

razer

Use the assigned key in IDEA keymap settings instead of the mouse shortcut.


Note that Eclipse is SWT based while IDEA is Swing based, so mouse event management is completely different. If JDK cannot recognize your device button clicks, it will not work in any Java Swing applications (NetBeans, JEdit, etc). In some cases running IDEA under a more recent JDK version may help (if support for your device was added in the newer JDK release).

like image 38
CrazyCoder Avatar answered Oct 11 '22 00:10

CrazyCoder