- Advantages Of Learning Java: Why Is JAVA Easier To Learn Than Other Programming Languages?
- Advantages Of Learning Java: What To Gain From JAVA Programming?
- Getting Your System Ready For JAVA: Installing The JAVA Development Kit (JDK)
- A Great Help For Creating JAVA Code: Advantages Of Using The Eclipse IDE For JAVA Development
- Download & Install Eclipse IDE For JAVA Development
- Eclipse Configuration For Start To Create JAVA Code
- First Lines Of JAVA Code With Eclipse (Hello World)
In a previous part of this series I explained a few advantages about JAVA in general and especially about Eclipse for creating JAVA code. If you followed the very last part you should have Eclipse installed already. Now we will have a further short look at some configuration for Eclipse. We will make some useful changes that will help us to create JAVA code easier in the future.
When you start the Eclipse application for the first time it will look like this:
First thing we will do is to click on the upper right at “Workbench”:
This will result in the basic standard view Eclipse has:
It’s completely empty because we don’t have any projects yet. We will change this very soon! But there’s two crucial configurations you should really do before writing any line of JAVA code in Eclipse:
Go to “Window -> Preferences”:
Here you’ll have tons of settings you can configure. If you’re not sure where to find it you can simply type a search term and Eclipse will reduce it down to the remaining options and present them (at the upper left):
Try it out by simply typing “sa”. You can see how the given options are reduced by every typing of a letter. We are actually interested in the “Save Actions”. To go there just click with your mouse at “Save Actions”:
After a fresh install here’s everything grayed out. To change that check the box “Perform the selected actions on save” and “Format source code”:
Select the mentioned checkboxes and click “Apply and Close”
I already mentioned the benefits of these features in one of my earlier part of this series:
- a formatted source code will result in less time spent on chaotic code writings and reduces the time and need to manually “beautify” your code to zero
- the “organize imports” feature will make things much easier later on when writing code. If you include things that require imports (for example an ArrayList) the needed imports will be offered to you and you can then choose to implement them easily
We will have a deeper look on different examples what these changes we just made really mean for coding JAVA in Eclipse later on this series!
Now we’re really through with configuring the basics for the use of Eclipse, also the workspace folder location settings and already some useful help that we can profit every time we will write some JAVA code.
Stay tuned, we’re almost there: In the next part we will finally be able to create and execute the first lines of JAVA code with Eclipse!
GET SOME INFOSION FROM SOME OF MY OTHER ARTICLES: