Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Wednesday, January 23, 2013

Optimize eclipse performence



Try the below setting for eclipse.ini file under eclipse directory. It will give you better performance then default configuration.
(Backup your existing eclipse.ini file before any changes)

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
-vm
C:\root\Dev\Java\jdk1.7.0_09\jre\bin\server\jvm.dll  
#Path of your installed JRE
-Dosgi.requiredJavaVersion=1.7 
#Correct JRE version                                                                                                                           
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-server
-Declipse.p2.unsignedPolicy=allow
-Dhelp.lucene.tokenizer=standard
-Xms1024m                                                                       
#Memory Settings (eclipse loves ram)
-Xmx1024m
-Xmn128m
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=256m
-XX:+UseParallelGC                                                     
-Xverify:none                                                   
-XX:+UseFastAccessorMethods

Thursday, October 25, 2012

Eclipse Shortcuts


Download the printable version here. Print, use, modify and share!
Navigation
Working with Editor
Ctrl + Shift + R
Open / Search for resources, e.g. files
Ctrl + 1
Quickfix; result depending on cursor position
Ctrl + Shift + T
Open / Search for Types
Ctrl + I
Correct Indentation
Ctrl + E
Allows to select an editor from the currently open editors
Ctrl + Space
Content assist/ code completion
Ctrl + F8
Shortcut for switching perspectives
Ctrl + L
Go to line no
Ctrl + F7
Move between views
Ctrl + T
Show the inheritance tree of the current Java class
Alt + Let / Right
Go to previous/ next editor position in history
F12
Focuses on the editor.
Alt + Up / Down
Move line up / down
Ctrl + M
Maximize Java editor
F3
Go to the declaration of this variable
Ctrl + Shift + F
Format source code
Ctrl + Shift + P
Go to the matching bracket
Ctrl + Shift + O
Organize the imports; will import the missing import statements.
Ctrl + Left / Right
Move one element to the left / right
Ctrl + Q
Go to position the cursor at the last changed.
Ctrl + Up / Down
Scroll up / down a line in the editor
Ctrl + Alt + Z
Wrap the select block of code into a block, e.g. try/catch.
Alt + Shift Up / Down
Select the previous / next syntactical element
Ctrl + 2, L
Assign statement to new local variable
Alt + Shift Up / Down / Left / Right
Extending / Reducing the selection of the previous / next syntactical element
Ctrl + 2, F
Assign statement to new field
Ctrl + .
Go to the next problem / error
Shift + F2
Show the Javadoc for the selected type / class / method
Ctrl + ,
Go to the previous problem / error
Ctrl + Alt + Up/Down
Copy line
Ctrl + H
Java search in workspace
Alt + Shift + Z
Surround block with try and catch
F4 on a variable
Show type hierarchy of an Class
Alt + Shift + R
Rename
Ctrl + J , Ctrl + K
Incremental search, find next
Ctrl+2, R
Rename locally (in file), faster then Alt + Shift + R
Ctrl + Shift + G
Search for references in the workspace
Alt + Shift + T
Opens the quick refactoring menu
Run and Debug
Ctrl + S
Saves current editor
F5
Step into.
Ctrl+ D
Deletes current line in the editor
F6
Step over.
Ctrl + Shift + O
Adjusts the imports statements.
F7
Go to the caller of the method/ function.
Ctrl + 2, L or F
Assign statement to new local variable or field
F8
Go to the next breakpoint.
Ctrl + Shift + T
Open Type Dialog
Ctrl + Q
Inspect
Ctrl + O
Shows quick outline of a class
Ctrl + F11
Run last launched
Ctrl+3
Master Shortcut
Alt + Shift + X - J
Run current selected class as Java application
Ctrl + Alt + L
List out all Shortcuts
Ctrl + F11
Run last launched application