
#INTELLIJ KEYBOARD SHORTCUTS CODE#
Gives you a list of intentions applicable to the code at the caret. Reformatting can apply to the selected text, entire file, or entire project. Reformat source code and optimize imports: CTRL + ALT + LĪllows you to reformat source code to meet the requirements of your code style. This means that the IDE will try to match expected types that suit the current context and filter all the other options. Like auto complete (CTRL + SPACE) but if you add a SHIFT you get the smart completion. Smart Type Completion: CTRL + SHIFT + SPACE

How? By adding curly braces, or semicolon and line change. This will try to complete your current statement. Awesome when you need to select large blocks or just specific parts of a piece of code.

(Eclipse: Ctrl-L)Īllows you to select code with context. (Eclipse: Ctrl+K)ĭelete current line under cursor. When using CTLR-F to find in current file the F3 lets you to loop through the results. (Eclipse: Ctrl+Shift+T and Ctrl+Shift+R)įind and Replace in Path: CTRL + SHIFT + F / CTRL + SHIFT + RĪllows you to find in files or replace in files. Adding ALT on top of that it searches for symbols. If you combine it with SHIFT, it searches any file. Go to Class or file: CTRL + N and CTRL + Shift + NĪllows you to search by name for a Java file in your project. If you start typing, you can filter the files. Shows you a popup with all the recent files that you have opened or actually changed in the IDE. Recent Viewed or edited Files: CTLR + E / CTRL + SHIFT + E If you want to know how Eclipse shortcuts map to IDEA there's nice post about IntelliJ IDEA shortcuts for Eclipse users and I added some in my list. And changing "comment current line or selection" with Ctrl+/ which is impossible with Finnish keyboards to Ctrl+7. You also should change some default IDEA keyboard shortcuts to better ones like "closing editor window" with Ctrl+F4 which is too cumbersome compared to the de facto Ctrl+W. You may be tempted to just go with the Eclipse keymap but it's better to learn the IDEA way although it's quite irritating at start. Click "Plugins", then "Browse Repositories" at the bottomĮssential IntelliJ IDEA keyboard shortcuts

In theory you can use Eclipse keymap for shortcuts but it just doesn't work like it should and in practice you have to learn the IDEA way. The biggest difference in daily work with IDE is the shortcuts which are quite different in IDEA. The switch for long time Eclipse user wasn't easy as IDEA works a bit differently but the change was worth it. Recently I switched from using Eclipse to IntelliJ IDEA as our Java EE application's front-end was done with JavaScript and the support for front-end technologies in Eclipse is more or less non-existent.
