Android Studio code formatting issue
问题 I am using Android Studio and having an issue when formatting the code. When there is a statement that breaks into multiple lines and I need to format that to a single line statement, I can't do it using (Ctrl+Alt+L). The code didn't format to a single line using that shortcut. I tried changing the value of Right margin (Settings -> Editor -> Code Style) to a higher number, but that also didn't work. How to format the code to a single line? Thanks. 回答1: First go to Preferences > Editor > Code