Android studio code formatting issues

Android studio code formatting issues

[[125876]]

I copied a sample code from the Internet and ran it locally. The code was very messy, so I prepared to format it, but I found that the line spacing was still very large after option + command + L, as shown in the figure:

Does it look bad? Adjusting the code style in settings is not effective.

***Find an alternative method, merge the code into one line and then format it,

Shortcut key to merge into one line: control + shift + J

Format: option + command + L

The results are as follows:

Original URL: http://blogs.zmit.cn/5780.html

<<:  Can a single machine host more than 100,000 projects? Curious, come and learn about the hardware platform of this Git repository

>>:  Apple will set off a new wave of smart hardware in 2015

Recommend

520 is indeed a big day! But it’s not what you think…

Two little bees flying among the flowers... What ...

Popular Science Let Me Tell You丨Who Determines the Direction of a Typhoon?

Spread scientific ideas and promote scientific sp...

The Douyin operation plan is here!

Where are the opportunities for Douyin? Basically...

How to increase user growth? A complete system architecture for user growth!

In the world of the Internet , everything is for ...

Autonomous driving is still too far away? These scenarios will be applied first

Unmanned driving is the direction of future devel...

Dating requires IQ, staying up late will make people stupid

One minute with the doctor, the postures are cons...

To challenge Einstein, only 100,000 gamers are needed?

Leviathan Press: In ancient Greek, paidia (game) ...

33 data points on Apple in 2014

[[125219]] The technology industry continued to c...

Using a power bank incorrectly is like carrying a bomb... Check yourself now!

Editor: Gong Zixin Evening of February 19 Flight ...