google / google-java-format

Reformats Java source code to comply with Google Java Style.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idea live template cursor conflicts when used with google java format!

ArminZheng opened this issue · comments

Live template

fori

Before:

image

Enable google-java-format

image

After:

image

Version:

IntelliJ IDEA 2021.3.3 MacOS arm64 with google-java-format v1.15.0.0

I think it might be because of auto-formatting.

I don't know how to turn off the automatic formatting brought by google-java-format plugins in idea

Found it!

Just because of auto-formatting!

image

The default "fori" has no spaces, like "for(".

At the same time, in the right area, Options "Reformat according to style" is turned on.