Hello my people I have a query how I can do in Android Studio the adjustment of lines so that the lines of code are adjusted, in the code editor window
I would be grateful if you help me on this point.
thanks again.
Hello my people I have a query how I can do in Android Studio the adjustment of lines so that the lines of code are adjusted, in the code editor window
I would be grateful if you help me on this point.
thanks again.
I think you are referring to the code format, if so, there are two very good shortcuts that help you, actually only one but I share the other one that is also useful.
The first is known (according to the documentation ) as "Reformat code" what it does is format the code according to the guideline you are using and also how Android Studio is configured. It also allows you to order your code to be more readable.
Control + Alt + L (windows,linux), Command + Option + L(Mac)
The second is called "Optimize imports", what it does is eliminate the imports that you are not using. Many times we add lines of code that need imports to work, but if we remove that line it does not necessarily remove the import line, so with this you can do it.
Control + Alt + O (Windows, Linux) Control + Option + O (Mac)
I hope it helps you :)