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

Sharing APP operation experience, 6 ways to increase user activity!

How to maintain and increase activity and improve...

There are so many programming languages, why does Google prefer JS?

I have been engaged in software development for 1...

To all Android engineers: The trouble of not having technical depth

Preface Recently, a reader went for an interview ...

How can APP retain high-value users?

The user life cycle of each product is a process ...

Things about the bad code you wrote

[[141812]] 1. Summary I have written a lot of cod...

The "confrontation" between domestic mobile phones and Apple

According to statistics from a gossiper, domestic...

Google releases 2015 annual search rankings

Following Bing and Baidu, today Google also relea...

Pinduoduo, the “Master of Fission”

Pinduoduo has always been a classic example of fi...

Didi Kuaidi was summoned for a talk: Taxi industry reform is going in reverse

The policy relaxation in the private car sector t...