Intelli J IDEA

8

Click here to load reader

Transcript of Intelli J IDEA

Page 1: Intelli J IDEA

IntelliJ IDEA

Develop with pleasure!

ByAfkham Azeez

Senior Architect & Senior Manager

Page 2: Intelli J IDEA

The creators of IntelliJ IDEA (IMO the best Java IDE) have just come out with v1.0 of a Python IDE - james_clark (on

Twitter)

Page 3: Intelli J IDEA

Hands on session (1/2)● Simple HelloWorld class with main method (psvm + tab)● Copy a line (Ctrl + c without selecting the line)● Duplicate a line (Ctrl + d)● Delete a line (Ctrl + y)● Generate JavaDoc (/** + enter)● Move code segments up and down (Ctrl + Shift + up/down

arrows)● Wrap code segments (Ctrl + t)● Iterations (itar + tab, iter + tab)● Context menu (alt+Enter)● Different types of refactoring

○ Introduce variable (Ctrl + Alt + v)○ Introduce constant (Ctrl + Alt + c)○ Introduce field/attribute (Ctrl + Alt + f)○ Introduce method (Ctrl + Alt + m)

Page 4: Intelli J IDEA

Hands on session (2/2)● Find class (Ctrl + n)● Find file (Ctrl + Shift + n)● Rename (Shift + F6)● Find related files (Alt+F1)● Goto Line (Ctrl + g)● Move between navigated code (Alt+ctrl+left/right arrows)● Incrementally select code segments (Ctrl + w)● Incrementally deselect code segments (Ctrl + Shift + w)● Undo (Ctrl + z)● Redo (Ctrl + Shift + z)● Code headers● Remove all less used plugins

Page 5: Intelli J IDEA

Some useful plugins

● Hungry backspace● CopyFQNPlugin● Copy As HTML● SOAP UI● TCP Monitor● BashSupport● Generate serialVersionUID● Generate toString● FindBugs-IDEA● Atlassian Connector - Crucible

Page 6: Intelli J IDEA

Performance Optimization & Efficiency● Tune idea.vmoptions

○ -Xms1024m○ -Xmx1500m○ -d64○ -ea○ -server○ -XX:PermSize=300m○ -XX:MaxPermSize=600m○ -XX:+UseConcMarkSweepGC○ -XX:+UseParNewGC○ -XX:-UseGCOverheadLimit○ -XX:+CMSClassUnloadingEnabled

● Remove unnecessary plugins● Don't load previous project ● Don't save on frame deactivation● Don't auto sync with file system● Create a Desktop shortcut

Page 7: Intelli J IDEA

Resources

1. Demos http://www.jetbrains.com/idea/training/demos.html

2. DZone Refcard http://refcardz.dzone.com/announcements/intellij-idea

Page 8: Intelli J IDEA

Use IDEA as it is supposed to be used. Don't use it as a text editor & syntax

highlighter