android studio commonly used gadget settings (1)

Foreword: I have been sorting out Android knowledge points recently and plan to create a knowledge base to facilitate subsequent patronage, learning of new knowledge points and grasping the direction of learning. This article is an introduction to some usage points of development tools. This article is continuously updated, welcome additions~~

Summary:This article mainly records gadgets, settings, etc. related to android studio.

text:

1. Interface theme setting. File->Settings->Appearance&Behavior->Appearance. Choose your favorite theme background.



2. Modifications such as fonts. File->Settings->Editor->Colors&Fonts->Font. Click Save As to save it separately to edit the font.



3. Display the number of lines of code. File->Settings->Editor->General->Appearance. Check Show line numbers.


Another way is to display lines directly in the file. Right-click on the left side of the java file and check Show line numbers. This is only the current display, suitable for temporarily checking the number of lines. It will not be displayed when the file is closed and reopened.



4. Automatically guide packages. File->Settings->Editor->General->Auto Import. Many times when you copy code or files, a bunch of errors will be reported. You have to import packages one by one. It is much more convenient to turn on automatic package import.



5. Encoding format settings. File->Settings->Editor->File Encodings. Often when importing other projects or codes, garbled characters will appear, and the encoding format is not uniform. We set IDE Encoding, Project Encoding, and properties files to UTF-8. Encoding should be in a standard and unified format to avoid the problem of garbled characters.



6. Remove the vertical line on the right side of the file interface. File->Settings->Editor->General->Appearance. Many times we will find a vertical line on the right side of the file. This is to standardize our coding habits. The right side of the code is aligned with a line. If you don’t like it, you can remove it. Just uncheck Show right margin.





Guess you like

Origin blog.csdn.net/liujibin1836591303/article/details/70238792