In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what are the common shortcut keys in Android Studio". In the daily operation, I believe many people have doubts about the common shortcut keys in Android Studio. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "what are the common shortcut keys in Android Studio?" Next, please follow the editor to study!
Simple method
The shortcut key for directly setting AS is the same as eclipse, which is convenient for people who directly cut from eclipse to AS.
Default shortcut keys for commonly used AS
Ctrl + N looks up the JAVA class by the class name, similar to Ctrl+Shift+T in eclipse
Ctrl + Shift+ N finds all files by file name, similar to Ctrl+Shift+R in eclipse
Ctrl + alt + L format code, similar to ctrl + shift + F in eclipse
Ctrl + alt + O automatically optimizes import packages and classes, similar to ctrl + O in eclipse
Alt+ automatically generates code (such as getter\ setter\ toString\ equals, etc.), similar to shift+alt+s in eclipse
Alt + shift + c recent change points (compared to recently modified code)
Ctrl + E list of recently changed files
Ctrl + f string lookup
Ctrl + r string substitution
Ctrl + alt + space class name and interface name hint
Ctrl + shift + space automatic completion code (what's the difference from the above?) Similar to alt + / in eclipse (self-defined as shift + space)
Ctrl + J automatically generates corresponding code snippets (such as foreach branches, etc., or automatically generates code based on preset phrases and templates)
Tab code tag template can be directly completed by tab after input.
Shift+ F6 refactoring, renaming, that is, batch replacement of selected object names to new names, similar to shift+alt+R in eclipse
Ctrl + x deletes rows, similar to ctrl + d in eclipse
Ctrl + d copy lines, similar to ctrl + alt + ↓ in eclipse
Ctrl + H shows the structure diagram of the class (hierarchical relationships such as inheritance relationships are shown)
Ctrl + Q displays the annotation information of a method or class, similar to the javadoc information that automatically emerges in eclipse when you mouse over the corresponding method (in AS, you can select Show quick documentation on mouse move in File--settings-Editor-General-Other or you can hover the mouse)
In the tree navigation on the left side of alt + F1, jump to the location of the current file (as if the left tree cursor in AS is not the file location that is currently open on the right, I don't know if it can be set, take a look later)
Switch one by one in the code tab that opens on the right side of alt + ← / →
Alt + ctrl + ← / → jumps to the location of the previous browse, similar to alt + ← / → in eclipse
Ctrl + shift + backspace jumps to the last edited place
Alt + ↑ / ↓ jumps from the current location to the previous or next method in a code class
Ctrl + shift + ↑ / ↓ code snippet moves up or down, a feature is that the selected lines of code can only move up and down within the method, can not jump out of the current method; if the cursor is on the method definition line, the entire method will be moved in front of the previous method or behind the latter method as a whole.
Ctrl + F12 shows the structure of the current class (several public methods, private methods, variable information, and so on) in a class. AS has a Structure tab on the left by default, which is dragged to the right and often displayed, that is, as shown in eclipse.
If you press ctrl + W repeatedly, you will choose from a small range to a large range, first the word, then the whole line, then the whole method, and then the whole class, which is suitable for the scenario where the whole method needs to be selected.
Ctrl + shift + can choose the content specified in the clipboard to paste, similar to the advanced version of ctrl + v, and you can select the content from the recent copy to paste.
Alt + F7 lookup method or class call
At this point, the study of "what are the common shortcut keys in Android Studio" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.