Find a class
Ctrl + N
Add Unimplemented or Override Methods
The default shortcut is CTRL-I and CTRL-O.
To add a line
- Press Shift+Enter to add a new line after the one where the caret is currently located and move the caret to the beginning of this new line.
- To duplicate a line or fragment
- Place the caret at the line to be duplicated, or select the desired fragment of text.
- Press Ctrl+D.
To remove a line
- Press Ctrl+Y to delete the line at caret.
To move a line
- Place the caret at the line to be moved.
- Do one of the following:
To move a statement up or down
- Select a statement to be moved, or just place the caret at the first or last lines of a multi-line statement. Note that if moving a statement is not allowed in the current context, the commands will be disabled.
- Do one of the following:
To move code element to the left or to the right
- Place the caret at the desired code element, or select the elements to be moved.
- Do one of the following:
How do you input commandline argument in IntelliJ IDEA
Windows, Linux, some Macs:
ALT+SHIFT+F10, Right, E, Enter, Tab, enter your command line parameters, Enter. ;-)
Mac with "OS X 10.5" key schema:
CTRL+ALT+R, Right, E, Enter, Tab, enter your command line parameters, Enter.