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

2019 I am money 28th sem video tutorial completed (Baidu network disk)

I am Qian, in the 28th SEM tutorial, it is said :...

The new interface of iOS 19 is exposed, it’s amazing!

As we enter 2025, the update cycle of iOS 18 is a...

APP advertising: How to choose the right delivery channel?

If you don’t advertise, you’re waiting for death;...

Why can't you create a knowledge carnival in the Himalayas?

For the platform, creating a nominal "festiv...

“Hahaha”, this is the reason?!

Source: Minitory This article has been authorized...

Chat Weapon Arsenal, teach you how to make him/her talk to you endlessly 1PDF

Chat Weapon Arsenal,, teach you how to make him/h...

Cat: I don't like razors, my whiskers are very sensitive

I am Dong Dong Meow Talking animals are so fun! T...

As of 2021, there are several popular 5G mobile phones. Which one are you using?

A few months ago, it seemed that 5G was still syn...