In my friend's recommendation, last week Mr. Huang I used Google's new dark tool, based on IntelliJ Idea's new Android development integrated development environment
--android Studio, used to feel good, but as an ADT bundle of deep users, will inevitably encounter a lot of problems, so
Spirit of Everyone needs what I have to solve the principle, so I intend to write a few blog to help and Miss Huang, I have the same problem of the apes.
One, Android studio shortcut key setting method
Windows:file->setting->ide Settings->keymap
Mac os:android studio->preference->ide Settings->keymap
You can then see the Keymap page, where you can select the default configuration, where default is the defaults configuration, and then copy the default configuration to generate a new configuration
, this lesson The default configuration is used as an introduction to the sample, and other configurations can be studied by reference to the explanations in this lesson.
Second, some need to understand the shortcut key explanation
1. Code/generate Start code generator (alt insert)
function: automatically insert in code by user input: Getter, Setter, construction method, replication method, interface method, equal, Hashcode, parent class call, copyright information, etc.
default configuration keys: Windows is alt insert, MAC default not set recommended setting to cmd=
2. Code/reformat Code formatting (Ctrl alt L)
function: formats the currently selected code, code file, or global
default configuration keys: Windows/mac are all Ctrl alt L
3. Code/completion code completion prompt/Auto -complete (Ctrl space and CTRL shift space)
function: After pressing, displays the code in the current cursor at the completion of the prompt box/auto-complete after the cursor code
default configuration keys: CTRL space (hint), Ctrl shift Space (auto-complete)
4. Main menu/navigate Find class and code (CTRL n and CTRL shift N)
function: Open the corresponding code file by entering the class name or file name (with a complete hint) in the popup box
default configuration keys: Ctrl n class name search,CTRL shift n File Search
5. Code/optizime imports sort the imported packages and classes (Ctrl alt O)
action: When pressed, the import package or class in the selected area, current file, or global code file will be reordered, not imported packages
default configuration keys: Ctrl alt O
6. Main Menu/view View recently modified files (Ctrl e)
function: When pressed, a dialog box will pop up prompting several recently modified files
default configuration keys: Ctrl E
7. Find in Main menu/edit/find file (ctrl f)
function: When pressed, the editor will pop up a search box
default configuration keys: Ctrl F
8. Replace in Main menu/edit/find file (Ctrl R)
function: When pressed, the editor will pop up a search box and a replacement box
default configuration keys: Ctrl R
9. Main menu/refactor Renaming and refactoring (shift f6)
Effect : After pressing, the effect is similar to Refactor->rename
default configuration keys: shift F6
10. Main Menu/navigate jumps to the last edited place (CTRL shift BACKSPACE)
function: Press to jump to the last edited place
Default configuration key:CTRL shift BACKSPACE
11, Main menu/refactor/extract variable fast generation (Ctrl alt V)
Action: Press to quickly generate a temporary variable for the expression at the current cursor and use the expression as its assignment statement
Default configuration key:Ctrl ALT v
12, Main menu/view/tools Window Display method parameter type hint (CTRL p)
Function: When pressed, it will prompt the parameter list of the method at the current cursor, which is useful for viewing the reuse method.
Default configuration key:Ctrl P
13, Main Menu/view/tools Window Display method prompt information (CTRL q)
Function: When pressed, it will prompt the current cursor method's source doc and gaze, similar to the Eclipse cursor stop effect
Default configuration key:CTRL Q
14, Editor Actions range selection (Ctrl W)
Function: Expands the selected area each time it is pressed
Default configuration key:Ctrl W
15, Editor Actions up and Down switching method (Alt up/alt down)
Function: Up and down switching method
Default configuration keys:alt up and alt down
(First of these, there are a lot of buttons to follow to add ...) )
Android Studio Notes (2)--shortcut keys