Some time ago there was a desire to move with all the software necessary for writing Java code under Linux. The Ubuntu 14.04.3 LTS distribution was chosen as the destination system. The post does not reveal any secrets to the super-fine tuning of the operating system - everything has been known for a long time and everything has been discussed on subject forums. I will only describe the problems or, perhaps, the features that have arisen while working with Jetbrains IntelliJ Idea 14.1.5. Perhaps the reader does not know that he has problems, which means that for him these solutions will “improve” chips.
Turn off the keyboard in the IDE
Idea in Ubuntu 14.1.5 suffers from disabling the keyboard. This can happen 1 time in 5 days, and maybe in an hour several times. I solve this issue by running the command in autoload:
killall ibus-daemon
Idea Font Repair
Those who do not like font styles need:
1. download the “patch” for the JDK (I’ll note that I’m using JDK 1.8 from Oracle and those using alternative JDKs, this solution may not work), unzip and put it next to the JDK. In my case, this is / usr / lib / java / jvm:
')
wget http://urshulyak.com:85/jdk-8u5-tuxjdk-b08.tar.gz tar -zxvf jdk-8u5-tuxjdk-b08.tar.gz sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/java/jvm rm jdk-8u5-tuxjdk-b08.tar.gz
2. Modify or add parameters to the idea64.vpmotions file:
-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true
3. Add the IDEA_JDK environment variable (I myself added it to the current user ~ / .profile variables):
export IDEA_JDK="/usr/lib/java/jvm/jdk-8u5-tuxjdk-b08/"
After that, most likely, you will need to adjust the font sizes in the Idea settings. As a result, you will get a display no worse than other operating systems.
The fight for the "hot keys" configured in Jetbrains
Idea has in its settings, hotkeys that intersect. It would seem, there is nothing easier: you need to make a choice where you want to leave the default settings - in Unity or IDE, and reassign combinations. If you choose the path to change the hotkeys in the IDE, you can skip this item - there should be no problems. Pay attention only to the list of keys that need to be reassigned. If you choose the second option, then you may need a little tutorial. Let's start with a list of keys that need to be changed and what they do:
Alt + F7
Idea: Find Usages
Ubuntu: Move Window
Destination: Super + F7
Alt + F8
Idea: Evaluate Expression
Ubuntu: Resizable Window
Destination: Super + F8
Ctrl + Alt + arrows
Idea: Navigate
Ubuntu: Moving between system desktops
Destination: Super + Arrows
Ctrl + Alt + L
Idea: automatic code formatting
Ubuntu: Lock Screen
Destination: Super + L
Ctrl + Alt + T
Idea: call the context menu Surround With
Ubuntu: Open Terminal
Destination: Super + T
Ctrl + Alt + S
Idea: Opens the Idea settings menu.
Ubuntu:
Destination:
The above parameters are changed in Ubuntu just along the way: “System Parameters” - “All Parameters” - “Keyboard” - “Keyboard Shortcuts” and only the last two cause difficulties - these combinations are not available through the parameter settings. For this we need: CompizConfig Settings Manager.
Installation:
sudo apt-get install compizconfig-settings-manager
Run the program, then:
Ctrl + Alt + T
"Desktop" - "Ubuntu Unity Plugin" - "Launcher" - "Key to show the Dash, Launcher and Help Overlay". I deleted the value of the Super key from there. You can reassign to your own.
Ctrl + Alt + S
“General” - “General Options” - “Key Bindings” - “Toggle windows shaded”. Received similar to the previous one
Solving the problem of hot keys in the Russian layout
In Idea, hotkeys do not work if the Russian keyboard layout is enabled. There is a solution:
1. Download the file
github.com/zheludkovm/LinuxJavaFixes/archive/master.zip2. Unzip files to any convenient directory:
LinuxJavaFixes-1.0.0-SNAPSHOT.jar javassist-3.12.1.GA.jar
3. Add a parameter to the idea64.vpmotions file (do not forget to specify your path to the location):
-javaagent:/home/alexandr/dev/idea-IU-141.2735.5/LinuxJavaFixes/LinuxJavaFixes-1.0.0-SNAPSHOT.jar
Sources of inspiration:
bugs.launchpad.net/ubuntu/+source/ibus/+bug/481656askubuntu.com/questions/454361/font-in-intellij-idea-on-ubuntu-14-04askubuntu.com/questions/35688/how-can-i-change-unitys-super-t-binding-to-something-elsegithub.com/zheludkovm/LinuxJavaFixes