google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

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

Open ArminZheng opened this issue 2 years ago • 2 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

ArminZheng avatar Apr 21 '22 05:04 ArminZheng

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

ArminZheng avatar Jun 03 '22 16:06 ArminZheng

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.

ArminZheng avatar Aug 08 '22 10:08 ArminZheng