JavaRush /Java Blog /Random EN /Keyboard layouts
dio
Level 16
Москва

Keyboard layouts

Published in the Random EN group
Keyboard layouts - 1You may have heard that IntelliJ IDEA is a keyboard oriented IDE. This means that you can work with IntelliJ IDEA without touching the mouse. This will help you stay focused and ultimately be more productive. That is why it is important to know IntelliJ IDEA layouts, that is, which keys and key combinations cause which actions.
1. Settings
IntelliJ IDEA comes with a set of keyboard layouts that have been specifically adapted for use with different operating systems, as well as making it easy to migrate from other IDEs and editors. For example, if you've been using Eclipse, NetBeans, or you're a fan of Emacs for a long time, you'll be able to find a layout that's right for you. To select the keymap you want to use, go to Settings → Keymap. Any layout can be further adapted to suit your habits, meaning you can add your own keyboard shortcuts and modify existing ones. Keyboard layouts - 2
2. Search action by keyboard combination
If you're wondering what action a particular keyboard shortcut causes, take a look at the following figure. Keyboard layouts - 3 Keyboard layouts - 4 Keyboard layouts - 4 The complete keymap reference is always available via Help → Default Keymap Reference and also on the IntelliJ IDEA website.
3. Call an action by name
Whenever you need to perform some action but don't know which keyboard shortcut to use, press Shift + Ctrl + A (Shift + Cmd + A on Mac) directly from the editor and start typing what you're looking for. Keyboard layouts - 5
4. Conflicts with system keyboard shortcuts
Sometimes, if you were to select a layout specific to your operating system, there might still be a conflict between the keyboard shortcuts used in IntelliJ IDEA and your OS. To avoid these conflicts, just use the following trick in your system settings.
5. Mac OS X
Switch F1 - F12 for default function key behavior, because they are all heavily used in IntelliJ IDEA. Keyboard layouts - 6 Disable Show Spotlight search field because its keyboard shortcut Ctrl + Space is the default shortcut for code completion in IntelliJ IDEA. Keyboard layouts - 7 The first time you run IntelliJ IDEA on Mac OS X, the default layout for Mac OS is selected, but you can choose Mac OS X 10.5+ layout, which was designed specifically for Mac OS X version 10.5 and above, the layout is more friendly for users who are used to Mac OS X keyboard shortcuts.
6.Ubuntu
Here is a list of tricks you need to do with the default key system so that they don't interfere with IntelliJ IDEA's actions (indicated in brackets). Disable window shadow, assigned to Ctrl + Alt + S (Settings Dialog) Change or disable screen lock, assigned to Ctrl + Alt + L (Format code) Change or disable terminal launch, assigned to Ctrl + Alt + T (Surround expression with construct ) Modify or disable, workspace switching, assigned to Ctrl + Alt + Arrows (Navigation) Disable window movement, assigned to Alt + F7 (Search Usage) Modify or disable window resizing, assigned to Alt + F8 (Expression Evaluation) Keyboard layouts - 8 7. Vim Finally, if you're a die-hard Vim fan and can't go coding in another editor, you'll be glad to know that IntelliJ IDEA has a Vim emulation plugin . To enable Vim layout in IntelliJ IDEA, you need to download and enable the IdeaVim plugin in Settings → Plugins. Keyboard layouts - 9 The plugin supports many Vim features including keyboard shortcuts, key actions, many command types, registers, macros, modes, and more . Original article: Keymap Translated
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION