Intellij manage tool windows and their shortcuts - intellij-idea

Intellij provides "Switcher" which not only switches between recent files but also tool windows.
Some tool windows are not being assigned to a shortcut which forces you to open it every time going trough Switcher dialog instead of just doing a simple shortcut.
For example here gradle does not have a shortcut
Although it is shown as tool window under number 5
How do we manage these shortcuts?

Go to Settings -> Keymap -> Other and find Gradle, assign shortcut as you wish (i.e. Alt + 2). It will work. Note that a hint on button (in this example 2:Gradle) will appear after restarting.

Related

Keyboard shortcut to switch between keybindings in Intellij

I'm a long time Emacs user who recently started developing with Intellij IDEA.
I've installed the Emacs+ plugin to get some keyboard shortcuts. However the experience is not optimal as some bindings clash with the ones from Intellij.
Is there a possibility the switch between bindings on the fly ?
Say I'm editing a Java file with Emacs+ bindings and I would like to go to the declaration of the method on the current cursor position:
With the keyboard shortcut available, here is the setup:
I would first switch to Intellij default bindings (using the shortcut in question) and then press Ctrl + B
Go back to Emacs+ bindings to continue editing
You can use View > Quick Switch Scheme ... to switch key mapping bindings.
Here are some screenshots showing this:

IntelliJ IDEA 14 Copy and Paste not working with other applications

Couldn't find the simple solution on SO, so thought I would add this here for anyone looking in the future.
My symptom was that I could copy and paste within the IJ editor, but not from the editor to another application or from another app to the editor.
This was on Windows 10 with IntelliJ IDEA 14.1.6.
I have found the best solution yet (for me in any case). I have tried everything! Including adding and removing Keymap options. And this is actually where the problem lies...sort of.
When you have the Vim plugin installed, Ctrl + c and Ctrl + v is allocated to Vim.
To change that, go to Setting>>Other Settings>>Vim Emulation and set the Handler to IDE. Apply and OK, and Voila!
My solution (thanks to a similar issue reported with Android Studio) was to run IntelliJ as an admin.
Steps to always run IntelliJ in admin mode:
Right-click on IntelliJ icon in start menu search (or wherever you started it) -> Open file location
Right-click IntelliJ shortcut -> Open file location (yes, again to get to the .exe, not the shortcut.)
Right-click idea.exe -> Properties
Compatibility tab -> check Run this program as an Administrator
Right-click idea64.exe -> Properties (if you run IntelliJ in 64 bit mode)
Compatibility tab -> check Run this program as an Administrator
Same problem drove me completely insane but this
https://www.quora.com/Why-doesnt-Ctrl+V-and-Ctrl+C-work-in-IntelliJ-IDEA-14-0-2-on-Linux
worked for me:
You might try Ctrl+INS for copy and Shift+INS for paste and see if they work. They are the traditional cut and paste and have been around a lot longer than Ctrl+c/Ctrl+v.
i don't know why, but this worked!
To make copy/paste through shortcut keys working with Vim Plugin you need to change some settings of Intellij IDE's editor regarding vim emulation, you need to follow these steps for it:
Click Menu File > Settings... (or use shortcut Ctrl + Alt + S)
Select Editor -> Vim Emulation and find the shortcuts and change their Handler column value to IDE as shown in the screenshot below.
The Shortcuts will start working, happy coding :)
Another solution i've found
https://code.google.com/p/android/issues/detail?id=173201
was:
Try to minimize Idea window and move it on the same monitor where is the code that you want to copy and paste it. After this small minimize and move exercise the clipboard starts working.
Ctrl-Shft-V starts working after this for me!!!!!
Try to enable "Use national layouts". Settings- Keymap.
For some reason it worked for me.
PyCharm - Setting>>Vim Emulation Set - Control + V/P/A to IDE

Set shortcut number to IntelliJ's tool windows

i wonder if it's possible to set a own shortcut to IntelliJ's tool windows. The default shortcut for the Project tool window is ALT + 1 and i would like to change this or assign a shortcut to per example the Persistence tool window which have no default shortcut.
Thanks in advance.
You can set it in settings -> keymap (just search for window you need)
Just edit the tool window shortcut in keymap(IDEA 2017.2 For MacOS). See this picture:
keymap for tool windows

How do I set up IntelliJ on dual monitors?

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.
All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.
IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.
IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.

Disable global Ctrl-Alt-L hotkey in KDE

The IntelliJ IDEA short-cut to reformat source code is Ctrl+Alt+L. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence?
Under the K menu, go to the Control Center.
Regional & Accessibility |
Keyboard Shortcuts |
Shortcut Schemes tab,
Global Shortcuts tab.
In the search box, type "lock", which should narrow the visible shortcuts and show the Ctrl+Alt+L one ("Lock Session").
Underneath, click None.
Click the Apply button.
On KDE Plasma 5 go to System Settings | Desktop Behaviour | Screen Locking
Here you will find a "Keyboard Shortcut" option. Change it to something else or set to none
On Kubuntu 11.10 it's well hidden:
Start System Settings
Under Common Appearance and Behavior, select Shortcuts and Gestures.
Select Global Keyboard Shortcuts in the left-hand panel.
Select the KDE Component: Run Command Interface (important, otherwise you won't see the ctrl-alt-L mapping!)
Select Lock Session
Edit the setting, either choose a different mapping or 'none'.
I eventually found how to disable the lock screen key binding (Ctrl-Alt-L) in the System Setting app.
System Settings->"Keyboard Mouse->Keyboard Shortcuts
I had to choose the KDE component: Run Command Interface.
I'm running KDE on Fedora Core 9.
For Linux Mint:
System Settings -> Keyboard -> Keyboard Shortcuts -> System -> Lock screen
It's easy to disable all global keyboard shortcuts in KDE for specific applications. I've done it in KDE 4 and now I've done it in KDE 5 again. So in KDE 5 right click on your application's window title -> More actions -> Special Window Settings (or Special Application Settings) -> Appearance & Fixes -> Ignore Global Shortcuts -> Force, Yes. It's much easier than to look for each shortcut one by one.
You can check such configurations in System Settings -> Window Management -> Window Rules.
Instead of disabling anything, you can also use ctrl+meta+alt+l in most applications where this problem exists. KDE knows the meta key (aka the 'windows key'), but the applications seem to ignore it and consider it to be just ctrl+alt+l.
I know, old question, but I didn't easily find a decent answer. If anybody is wondering how to disable it on Ubuntu (while the Windows_key + L shortcut will still work):
Go to Settings -> Keyboard -> Shortcuts tab -> System -> select Lock screen and press backspace to clear it.
For KDE Plasma 5
1 - click on K menu, type keyboard, choose Global Keyboard shortcuts
2 - Choose the KDE Session Manager in KDE component , at Lock Session, do what you want, disable the shortcut or choose another!
For Ubuntu 16.04 System settings -> Keyboard -> Shortcut -> System -> LockScreen -> click-it and make changes
I changed my to ctrl+alt+H from ctrl+atl+L
Here is the Screen shot which tells where the above instructions will lead you to.
Keyboard -> shortcuts
Another option is to change the Idea keymap to use Default for KDE.
You can go to File -> settings -> keymap and then select the Default for KDE option from the drop down
Also you can change it with the configuration file.
The following files store the keyboard shortcuts of KDE Plasma 5 and of some of its associated applications such as Konsole and KWrite.
~/.config/kdeglobals
~/.config/kglobalshortcutsrc
~/.config/khotkeysrc
~/.config/kwinrc
~/.config/plasma-org.kde.plasma.desktop-appletsrc
~/.local/share/kxmlgui5/katepart/katepart5ui.rc
~/.local/share/kxmlgui5/konsole/konsoleui.rc
~/.local/share/kxmlgui5/konsole/sessionui.rc
~/.local/share/kxmlgui5/kwrite/kwriteui.rc
Let me add descriptions for the files.
Standard Shortcuts (System Settings > Shortcuts)
~/.config/kdeglobals
Global Shortcuts (System Settings > Shortcuts)
~/.config/kglobalshortcutsrc
"Custom Shortcuts" (System Settings > Shortcuts)
~/.config/khotkeysrc
Konsole
~/.local/share/kxmlgui5/konsole/konsoleui.rc
~/.local/share/kxmlgui5/konsole/sessionui.rc
KWrite > Settings > Configure Shortcuts... > KWrite
~/.local/share/kxmlgui5/kwrite/kwriteui.rc
KWrite > Settings > Configure Shortcuts... > Kate Part
~/.local/share/kxmlgui5/katepart/katepart5ui.rc
For those who prefer visual answers, here's where this settings can be found
IMPORTANT Note that there are two values: Global and Global Alternative. I had to unbind the Global Alternative shortcut to resolve a problem with IntelliJ.
Ubuntu 20.04 + KDE plasma:
Use Global Shorcuts -> System Setting Module menu -> Lock session. Set to "Custom -> None"