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

Amazing! Intestinal flora can actually metabolize nicotine?

Author: Zhao Bei Smoking is harmful to health, bu...

Operators shut down 2G/3G: Who will pay for everyone to replace their phones?

As early as two years ago, operators led by China ...

Wuwei College Teacher Li Dong's five-day training camp for bull stock trading

Introduction to the bull stock trading resources ...

Tik Tok Principal "Love Principal VIP Family Bucket" Audio Tutorial

Douyin Principal "Love Principal VIP Family ...

Will your job be replaced by robots?

Google has been making a series of moves in the f...

SEM promotion word selection and expansion methodology can greatly improve ROI!

This article covers: Keyword division dimensions,...