Android Studio-1. Several personalized settings
I have not studied the android-studio user documentation, nor have I carefully considered its various usage skills. The following content is from personal experience. please correct me if you have any mistakes.
1. Topic.
File-> Settings, search for Theme, open Appearance, and select Darcula from Theme on the right panel.
2. Comment the shortcut key.
File-> Settings, search for keymap, open Keymap, search on the right panel, find Other-> Fix doc comment, double-click, select Add Keyboard Shortcut cut, and press your Shortcut key. In Eclipse, alt + shift + J is used, but there will be conflicts here, so I used a combination of relatively close Shortcut Keys: alt + shift + K. In terms of modifying document comments, such as adding parameters, the shortcut keys of Android Studio are much more intelligent than those of Eclipse.
3. member variable prefix.
If you add the m prefix before naming member variables, but you do not want this m in the method name when generating getter and setter, you can set it as follows.
File-> Settings-> Code Style-> Java, and then select the Code Generation label, Naming, and Field in the right panel. Add m to the corresponding Name prefix.
4. Sort methods.
If you always adjust the method you write to make mutual calls or function-related methods close, you can set it like this.
For example, in step 1, select Arrangment In the tag to check whether the Keep dependent methods together is sorted by breadth or depth.
5. New File annotation template.
File-> Settings, search for comment, find File and Code Templates, right panel, Templates-> Class, and modify the content in the edit box. The following is an Interface annotation template. My annotation template is as follows:
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end/** * User: Geek_Soledad(msdx.android@qq.com) * Date: ${YEAR}-${MONTH}-${DAY} * Time: ${HOUR}:${MINUTE} * FIXME */public class ${NAME} {}
You can also back up the original File Header in the Include tag and modify it.