google java format

Introduction

Have you ever been told that the format is not in place in java? it's simple. Just add the following to your build.gradle:

build.gradle


plugins {
  id 'com.github.sherter.google-java-format' version '0.7.1'
}

Check if the plugin has been added. I think googleJavaFormat has been added to Other tasks.

$ gradle tasks --all
Other tasks
-----------
googleJavaFormat

All you have to do is run it.

$ gradle tasks googleJavaFormat

Yes, it's beautiful. I can't get angry anymore.

Recommended Posts

google java format
Format XML in Java
Java Gold Countermeasures: Format
Java
Java
Use Java 11 with Google Cloud Functions
Work with Google Sheets from Java
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
[Java] ArrayDeque
java (override)
java (method)
Java Day 2018
Java string
java (array)
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
java shellsort
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
google recruit
☾ Java / Collection
Java array
Studying Java ―― 1
[Java] Array
[Java] Polymorphism
Studying Java # 0
Java review
java framework
Java features
google recruit
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
java (encapsulation)
Java inheritance
[Java] Overload
Try using JSON format API in Java
Java basics
google recruit