About this article
This article is to summarize some of the use of Android studio, it may take a while for most people who are accustomed to using eclipse, but if you look at some of the introductions below, you can see the power of Android studio, However, this article is only a tip of the iceberg, in-depth understanding will be more worthy of your discovery!
PS: Because of the time, translation may be incomplete, error, 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
In many 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 can display information about an image
Renaming shortcut Keys Shift+f6
Show, hide navigation menu shortcut keys Alt+home
Changes window 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 search box can be used to quickly find related items in Settings
Ctrl+shift+enter allows you to automatically add parentheses, semicolons after you finish writing 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 view 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 keywords, ctrl+shift+f7 can see where exceptions need to be captured
Alt+enter to quickly prompt for bug changes
Ctrl+click to display other files in the directory where the file is located
Co-operation, versioning-related
You can edit the color directly in the CSS file
Click Alt+enter on the class name to quickly create test
Press and hold ALT to select, and select multiple columns
Differentiate files with different colors
Version control related
The system comes with spell check
The. dic file defines the word you want to check
Version 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 close other tabs: Right-click Select, press ALT to 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 appropriate 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
In the following information bar you can choose to end the line wrapping method
Use file line separators to select separators under different systems
Ctrl+alt+shift+t to show refactoring information
You can add favorites to favourites
Documents can also be dragged directly to the collection
You can re-drag to the layout interface
Tools to open the terminal directly
After auto-completion, you can automatically take a value from an array
After auto-completion, you can automatically take a value from an array
Automatically prompts you to select the current prompt via Ctrl+shift+enter
Auto-complete inside through! To complement the rest of the code.
Press Ctrl+space twice in succession to display all relevant
Ctrl+enter can choose the first hint, if you don't have a choice.
Automatic hint inside can choose sort Way
After entering the code snippet, you can press CTRL+J to select a different hint
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 import hints under other namespaces
The SQL text can also prompt
Ctrl+q Quick Tips Document
View the declaration information by Ctrl+b
Renaming shortcut Keys Shift+f6
Ctrl+o Fast Rewrite method, Ctrl+i fast Implementation interface
Smart type hint shortcut ctrl+shift+space can prompt code snippet
When using auto-completion, you can use the tab in the Popup box to select
Alt+insert can quickly create some methods
Directly enter keywords to search
Ctrl+alt+t to select the template code
Extracting refactoring code from CTRL+ALT+V
Auto Comment ctrl+/ctrl+shift+/
Ctrl+d to copy a row
Using tabs to work with templates
Ctrl+e to implement history lookups
The shell can also be customized
When prompted by Ctrl + up and down arrows to select