Android Studio Tips and Tricks

Source: Internet
Author: User

About this article

This article is to summarize the use of some Android studio, for most people who are accustomed to using eclipse, it may take some time, but if you look at some of the following, you can realize the power of Android studio, Just the tip of this article is just an iceberg, and there will be a lot of other things you can find out about it!

PS: Because of the time, translation may be incomplete, wrong, I hope you can fix together, please point out in the message, I will amend ~THX


Quick tip: Ctrl+space




Press and hold ctrl+shift+ up and down to move the line of code up or down


Start Debugging shortcut keys ALT+SHIFT+F10




A lot of places you can use Ctrl+space to complete, prompt


Select Show applied Styles for tag on the context menu to display the HTML tag layout


Shortcut key ctrl+shift+i to display information about the image


Renaming shortcut Keys Shift+f6


Show, hide navigation menu shortcut keys Alt+home


Changes form can display all the changes, shortcut keys ALT+F9


You can choose Eclipse's classpath or project file to import an eclipse file


You can display all related classes, methods, variable shortcut keys for the selected object Ctrl+alt+f7


To open the search box for a command by using the shortcut key Atrl+shift+a


The ability to find related items at high speed through the search box in Settings


Ctrl+shift+enter can help you to add parentheses, semicolons after you've written some code.


Shortcut key Ctrl+shift+f7 can view all the interface information implemented by this class


When using the search box, click the drop-down arrow to see the Search history


You can also use CTRL + SPACE to complete the search


View all the return points of a method, which can be implemented by CTRL+SHIFT+F7


Using shortcut keys on exception keyword, CTRL+SHIFT+F7 is able to see where exceptions need to be captured


Alt+enter to high speed prompt for bug change


Ctrl+click to display other files in the folder where the file is located


Cooperative work, version number control related


The ability to edit colors directly in CSS files


Click Alt+enter on the class name to create the test at high speed


Press and hold ALT to select, to select multiple columns


Differentiate files with different colors


Version number control related


The system comes with spell check


The. dic file defines the word you want to check


Version number control related


Use Ctrl+tab to toggle through all open documents, hold down CTRL, navigate using the UP and DOWN ARROW keys, tab, Shift+tab, alt to close the document using Delete, backspace


To turn off other tab options: Right-click Select, alt-Close


Press and hold ctrl+shift+n to search for related files


Show change history by show diff


Select the jar file to compare on project, and press Ctrl+d to compare


Split display


Ctrl+space completion does not need to be entered sequentially


Ctrl+f to search, add fields by Atrl+r


In scope, you can select the corresponding tag to find


The task list can be selected with CTRL, Shift multiple


Run/debug can be managed in groups






Accelerating HTML development by using Emmet




The following Information bar is able to select the end of line wrapping mode


Use file line separators to select separators under different systems


Ctrl+alt+shift+t to show refactoring information


Ability to add favorites to favourites


Documents can also be dragged directly to the collection


You can drag again to the layout interface


Tools to open the terminal directly




After the initiative, you can take the initiative to get a value from an array


After the initiative, you can take the initiative to get a value from an array




You can choose the current prompt via ctrl+shift+enter after you have actively prompted


Take your own initiative to complete the inside through! To complement the rest of the code.


Press Ctrl+space twice in succession to show all relevant


Ctrl+enter can choose the first hint, assuming you don't have a choice.


You can choose the Sort method in the active prompt


After entering the code snippet, you can press CTRL+J to select additional hints


Create multiple cursor with Alt+shift+click


Shortcut keys Ctrl+shift+a to clone create


Ctrl+q to display Document information


You can choose Show Quick doc on mouse move to hover the hint document like eclipse


Alt+f12 to boot through the terminal.


Press Ctrl+space 2 times to be able to import hints under other namespaces


The SQL text can also prompt


Ctrl+q High Speed Prompt document


View the declaration information by Ctrl+b


Renaming shortcut Keys Shift+f6


Ctrl+o high-speed rewrite method, ctrl+i high-speed implementation interface


Smart type hint shortcut ctrl+shift+space can prompt code snippet


When using your own active completion, you can use the tab in the Pop-up box to select




Alt+insert can create some methods at high speed


Direct Input keyword to search


Ctrl+alt+t to select the template code




Extracting refactoring code from CTRL+ALT+V


Self-actively gaze ctrl+/ctrl+shift+/




Ctrl+d to copy a row


Using tabs to work with templates


Ctrl+e to implement history lookups


The shell is also able to define itself


When prompted by Ctrl + up and down arrows to select



Android Studio Tips and Tricks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.