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

The ideal product operator has this kind of thinking...

Product operation is inseparable, and a good prod...

Different sleeping positions, different personalities? How do you sleep?

It is unreliable to judge a child's personali...

How to promote user sharing and dissemination?

For internet dogs, it is easy to organize an even...

Are those products labeled "natural" really a waste of money?

Recently I saw a hot search "Are black sesam...

“The first bucket of milk tea in autumn”, will it save life or kill you?

Yesterday was the beginning of autumn, and “the f...