Friday, 20 January 2012

Setting up Eclipse check list (Part 2) - Java Preferences

As you will be doing Java development in Eclipse (I assume) you miight want to set up some settings  to make thinsg smoother.

First the Java VM;
If you followed the first article then you will already poiunting at theDLL for the run time but otherwise add the installed JDK if not already selected.
This is located under Window-->Preferences; Java-->Installed JREs.

Setup some user libaries
This is located under Window-->Preferences; Java-->Build path-->User libaries.
If you have previously created some just import the old file.
Otherwise create all the libaries you are going to need but don't forget to Export the file and save it some where secure.

Setup your code styles
There are a couple of settings you might want to set in each workspace.
They exist under Window-->Preferences; Java-->Code Style;
  1. Exception variable name "ex";
  2. Qualify all generated field access with this -ON ;
  3.  
Clean Up
This is located under Window-->Preferences; Java-->Code Style-->Clean Up.
If you have an  old work space then you should find these settings imported along with your projects and workspace.
Otherwise go through all the settings and settings and customise them.

Don't forget to export them to a safe place to ensure you don't lose them.

 
Code Templates
This is located under Window-->Preferences; Java-->Code Style-->Code Templates.
If you have an  old work space then you should find these settings imported along with your projects and workspace.
Otherwise go through all the settings and settings and customise them.

Don't forget to export them to a safe place to ensure you don't lose them.

Formatter
This is located under Window-->Preferences; Java-->Code Style-->Formatter.
If you have an  old work space then you should find these settings imported along with your projects and workspace.
Otherwise go through all the settings and settings and customise them.

Don't forget to export them to a safe place to ensure you don't lose them.

I have saved both of my preference files as seperate posts.

(Prev)(Next - Plugins)

No comments:

Post a Comment