This time has been using Android studio to do some demo development, from the beginning of the eclipse to the development tool, a variety of non-adaptation, I hope this blog can be updated, as well as netizens can share their own convenient and faster development of some skills.
First of all, I would like to talk about some of the frequently used shortcut keys, online A lot of just say a probably, very vague, do not know when will be used. Let's try to make this blog useful instead of purely copy!
Although Android Studio can directly set all shortcuts to eclipse shortcut keys, but think of your colleagues around, it may not necessarily be set to eclipse, so sometimes you use someone else's computer, every time you have to adjust, also more trouble, It's better to use Android Studio shortcut keys than usual.
0.Android Studio Shortcuts Follow Eclipse's shortcut keys (not recommended)
1. Set the mouse pointer over the class to indicate that it will appear (corresponding to eclipse). (Enter the Setup interface: file->settings)
:
2. Shortcut key Alt+enter. (Auto-guide package, and tips for troubleshooting "If you need to add a try catch or something, you will be prompted")
Reprint Please specify source: HTTP://BLOG.CSDN.NET/LJPHHJ
3. Shortcut key Alt+insert. (Fast generation of constructors, Getter/setter method, toString (), Equals () and hashcode (), etc.) "equivalent to Alt+shift+s in Eclipse"
4. Another important shortcut is to jump to the previous step (ctrl+alt+ direction left), jump to the next position (ctrl+alt+ direction right)
This shortcut key, in your tracking code when, very good, sometimes you always press (CTRL + mouse click Class), always go to the source inside jump, after not remember where you jumped in. These two shortcut keys are to help you better back and forward.
5. Smart tips When ignoring the case of the problem (such as: String class, you can hit a string to prompt you string), set here to None
There are shortcuts for smart tips in Android studio that are CTRL + SPACEBAR (with Input method conflicts), you can change it to alt+/and Eclipse.
6. Smart abbreviation template (Live template), Ctrl + J
People who believe in eclipse often use Sysout and then click alt+/to Output System.out.println (); a line of code
Also in Android studio, press CTRL + J shortcut keys to see some, such as: PSVM is to generate a
public static void Main (string[] args) function block, then if we want to set this main function block as in Eclipse, you can also
Modify or add live Templates
(Continuous update, I hope to know more useful skills of netizens, you can leave a message!) Are the bitter Force program ape, help each other, save our development time)
Reprint Please specify source: HTTP://BLOG.CSDN.NET/LJPHHJ