Showing posts with label eclipse performance. Show all posts
Showing posts with label eclipse performance. Show all posts

Eclipse IDE and IntelliJ IDEA shortcuts and tips

Useful and best practice IDE settings include:
  • show line numbers
  • show whitespace characters
  • line delimiter type UNIX
  • encoding UTF8
  • using spaces instead of TABS
  • limit startup plugins / extensions

Eclipse startup and performance settings
1. eclipse.ini - specify custom java location:
-vm
/home/mnoor/jdk1.6.0_45/bin

2. eclipse.ini - performance tweaks:
-XX:MaxPermSize=512m
-Xms128m
-Xmx1024m

IntelliJ startup and performance settings
1. idea.vmoptions - memory settings:

-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m

2. idea.sh - additional VM args, JAVA location, etc.


Some Common and useful shortcuts:
1. Open class/type:IntelliJ - CTRL+N
Eclipse - CTRL+SHIFT+T

2. Open resource / any file:
IntelliJ - CTRL+SHIFT+N
Eclipse - CTRL+SHIFT+R

3. See documentation:
IntelliJ - CTRL+Q
Eclipse - F2

4. See declaration:
IntelliJ - ALT+Q
Eclipse - F2

5. Navigate to declaration:
IntelliJ - CTRL+B
Eclipse - F3

6. Find usages / references:
IntelliJ - ALT+F7
Eclipse - SHIFT+CTRL+G

7. Refactor / rename:
IntelliJ - SHIFT+F6
Eclipse - SHIFT+ALT+R

8. Implement abstract methods from abstract base class or interface.
IntelliJ - CTRL+I
Eclipse - CTRL+1 -> add unimplemented methods

9. Code completion:
IntelliJ - CTRL+SHIFT+SPACE
Eclipse - CTRL+SPACE

10. Search in files
IntelliJ - CTRL+SHIFT+F
Eclipse - CTRL+H

11. Back to previously edited place:
IntelliJ - CTRL+SHIFT+BACKSPACE
Eclipse - ALT+LEFT, ALT+RIGHT

12. Comments
IntelliJ - CTRL+/, CTRL+SHIFT+/
Eclipse - CTRL+SHIFT+C

13. Navigate to the implementation
IntelliJ - CTRL+ALT+B
Eclipse - CTRL+T

That's it, cheers!