Tuesday, February 20, 2018

Intellij IDEA Shortcuts

Show Implementing Classes

To see all the classes which implement an interface, place your cursor on the interface name and push Ctrl+Alt+B. This will show all the classes implementing the interface.

See All Methods in Current Class

Press F12 to see all the methods in current class.

Go to Line Number

Press Ctrl+G. A dialog will pop up. Enter your line number to go to that line. You can also give column number after : to jump to that column of the line number.

Move Lines

Place cursor in the line which you want to move. Then press Shift+Alt+Up Arrow or Down Arrow to move the line up or down. To move multiple lines at once, select multiple lines before pressing the key combinations.

Delete Lines

Place cursor in the line which you want to delete. Then press Ctrl+y to delete the line. To delete multiple lines at once, select multiple lines before pressing the key combinations.

Duplicate Lines

Place cursor in the line which you want to duplicate. Then press Ctrl+d to duplicate the line. To duplicate multiple lines at once, select multiple lines before pressing the key combinations.






No comments:

Post a Comment