This entry is part 6 of 7 in the series Hello World Of Java!

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!

Sources:

https://www.eclipse.org/artwork/

GET SOME INFOSION FROM SOME OF MY OTHER ARTICLES:

—> Stellar’s Variety Of Use And Exciting Partnerships

—> Special Music On Emanate: Spread Awareness @Famous Artists!

—> PARSL Staking Is Ready: Stake Your SEED Coins For Next Airdrops, The Sooner The Better!


Your Remaining Votes (within 24hrs) : 10 of 10
8 votes, average: 5.00 out of 58 votes, average: 5.00 out of 58 votes, average: 5.00 out of 58 votes, average: 5.00 out of 58 votes, average: 5.00 out of 5 (8 votes, average: 5.00 out of 5)
You need to be a registered member to rate this.
(1503 total tokens earned)
Loading...

Responses

  1. Paul Oluwanisola

    Not the tech-savvy type, but this is full of information.
    I have a problem structuring my series post under the right part and headings. could u please teach me how to do this? You could reach me on the telegram group by searching @Paulo38O

    (1)