YuWebdesign



IntelliJ and Eclipse Windows/Mac Shortcuts

By YuwebDesign

Windows/Mac IntelliJ Shortcuts Cheat Sheet

Command
description
IntelliJ Eclipse
Windows Mac Windows Mac
open a list of all major IDE shortcuts Ctrl+Shift+L
comment or uncomment a line ctrl + / сtrl+/
comment or uncomment a block of selected code ctrl + shift + / ctrl + shift + /
auto format and rearrange code in current document or selected code fragment Ctrl+Alt+L Ctrl+Shift+F
public static void main(String[] args) psvm + Tab
System.out.println sout + tab sout + return sysout Ctrl+Space
surround a block of selected text with System.out.println sout Ctrl+j
  1. select text
  2. Ctrl+Space
  3. print sysout and hit enter
Create new alt + insert ctrl + n
Intention
actions
alt + enter alt + enter
Intention
actions
alt + return alt + return
Run JUnit/TestNG Test ctrl + shift + F10 ctrl + shift + F10
Show what parameters a method can take ctrl + p cmd + p
Show JavaDoc help file information for a method ctrl + q ctrl + j
See the source ctrl + click on the method to see the source
Import all classes automatically ctrl+shift+O

Leave a Reply or Comment

Your email address will not be published. Required fields are marked *