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

Build a secure app! iOS security series: HTTPS

[[144627]] How to create a secure App? This is a ...

3.15 Know More | Uncover the Truth Behind “Free WiFi”

The 3.15 Gala exposed that the "free WiFi&qu...

Advertising skills: Why do others get several times more clicks than you?

In this era where everyone is competing for atten...

Parent-child experience activity planning (commercial operation case)

The author of this article shares an activity pla...

10 Top Ten Effective Traffic Drainage Solutions, Take It!

Private domain operations rely on traffic generat...

Seeding + live streaming, a complete guide to playing Douyin on Double Eleven

The annual Double Eleven Carnival is about to beg...

Three major strategies for advertising on Bilibili based on user needs

Most marketers who are eager for a young user bas...