Coding Style Standard and Clean Commit Code in Eclipse

A common mistake done by developers when they raise merged request to the code repository, you probably seen a lot of spaces in the code, unindent, missing bracelets, camel case or non came case and others, that you can easily spot on as code reviewer.

As developer we need to keep the code to be consistent in terms of code style and clean up, is regardless of who is the coder.

Let’s start.

Applying to IDE

Download the java Google code style file from the repository here.

Open your Eclipse and click on Window > Preferences > Java > Code Style > Formatter

Click import and select the eclipse-java-google-style.xml file

Eclipse Formatter

And to apply changes whenever we click on the save button in eclipse. Please open Window > Preferences > Java > Editor > Save Actions

Eclipse Editor Save Actions

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

*args and **kwargs in Python

Before we get started

Video Production Editing in Renfrewshire | ShowReel #Video #Production #Editing #Renfrewshire…

What is new in PowerAuth 2018.03?

The journey of my programming language

Flutter : Widget and its lifecycle

Anycast Stateless Services with NSX-T, the Theory

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suharman Djaja

Suharman Djaja

More from Medium

CS373 Spring: Dillon Samra

Destructuring Array , Object , Func

Use Spell Check in Solr