Android studio 快捷键

Alt+ enter into the package, automatic correction
Ctrl+N  search the class by name.
Ctrl+Shift+N find
Ctrl+Alt+L making  code  formatting
Ctrl+Alt+O optimization into classes and packages
The Alt+Insert generated  code  (such as get, set, constructors, etc.)
Ctrl+E or Alt+Shift+C making  code  recently changed
Ctrl+R replace text
Ctrl+F text to find
Ctrl+Shift+Space auto completion  code
Ctrl+ space code
The Ctrl+Alt+Space class or interface name hints
Ctrl+P method parameters
Methods the Ctrl+Shift+Alt+N lookup or variable in a class
Alt+Shift+C recently modified  code

Shift+F6 making reconstruction
Ctrl+Shift+ key
Ctrl+X delete rows
Ctrl+D replication
Ctrl+/ Or Ctrl+Shift+/ making notes (and / or/*...*/ )
Ctrl+J making automatic  code
Ctrl+E recently opened files
Ctrl+H  shows  the class  diagram
Ctrl+Q display Notes document
Alt+F1 lookup  code   location
Alt+1 quickly open or hidden engineering panel
Ctrl+Alt+ left/Right returns to the last browsing position
Alt+ left/Right switch to  code  view
Alt+ Up/Down fast mobile positioning in methods
Ctrl+Shift+Up/Down  code  to the up / down mobile. 
Rapid localization of F2 or Shift+F2 highlight the error or warning

After completing the input  code  labels, according to Tab, the generated  code
The selected text, press Ctrl+Shift+F7, highlight all the text, press Esc highlighted disappear. 
Ctrl+W check  code , continuous press will have other effects
The selected text, press Alt+F3, one by one to find the same text, and to highlight the. 
Ctrl+Up/Down cursor to jump to the first or last line under the
Quickly open the cursor class or method Ctrl+B
The most common shortcut keys
1.Ctrl+E, Can display and edit the list of documents recently
2.Shift+Click can close the file
3.Ctrl+[or] can jump to the beginning of the end of the braces
4.Ctrl+Shift+Backspace can jump to the last edit
5.Ctrl+F12, Can display the structure of the current file
6.Ctrl+F7 can query the current element reference in the current file, and then press F3 to select
7.Ctrl+N, Can quickly open class
8.Ctrl+Shift+N, Can quickly open file
9.Alt+Q can see the current method statement
10.Ctrl+W allows you to select words and sentence and then following function
11.Alt+F1 can edit elements are positioned within each panel
12.Ctrl+P, Can display the parameter  information
13.Ctrl+Shift+Insert can select and insert clipboard contents
14.Alt+Insert can generate the constructor /Getter/Setter etc.
15.Ctrl+Alt+V can introduce variables. For example, in brackets into a variable SQL Fu
16.Ctrl+Alt+T  code  can be wrapped in a piece of, for example try/catch
17.Alt+Up and Alt+Down can move quickly in the methods
The following is not very useful
18 in some places according to the AltEnter can get some Intention Action, such as "= =" to"equals()"
19.Ctrl+Shift+Alt+N can quickly open symbols
20.Ctrl+Shift+Space gives Smart tips in a lot of time
21.Alt+F3 can quickly find
22.Ctrl+/And CtrlShift/ can comment  code
23.Ctrl+Alt+B can jump to the abstract method
24.Ctrl+O can choose the parent class method of rewriting
25.Ctrl+Q can see JavaDoc
26.Ctrl+Alt+Space is the name of the class automatically
27 quick open class / file / symbol, you can use a wildcard character, also can use abbreviations
28.Live Templates! Ctrl+J
29.Ctrl+Shift+F7 can be used to highlight the current element in the current document
30.Ctrl+Alt+Up /Ctrl+Alt+Down can quickly jump  search  results
31.Ctrl+Shift+J can integrate the two line
32.Alt+F8 is the calculation of variable values

IntelliJ IDEA use skills list
In the process of using InelliJ in IDEA, by  looking for   information  and explore some of their own, find that there are many noteworthy tips that many Java programmers like IDE, if can skillfully applies them to the actual development process, I believe it will save you development time, but the attendant will have so a little sense of achievement: ) Try it ! 

1 , Write  code  using the Alt-Insert ( Code |Generate... The getter and setter methods) can create a class in any field.  
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /> 

2 , Right click on the breakpoint marker (in the text on the left column) to activate the quick menu, you can set the enable/disable attribute of fast breakpoint or conditions for it. 

3 , CodeCompletion ( code  completion) a special variable attribute is, the activation of Ctrl-Alt-Space can be completed in or not in the current file name. If a class does not introduce the import mark will be created automatically. 

4 , Use the Ctrl-Shift-V shortcut keys can be the contents of the clipboard recently used selection into a text. The system will pop up a dialog box containing the content is used, from which you can choose you want to paste the part.  



5 , Using CodeCompletion ( code  completion) attributes can quickly complete the various statements in your  code , method is to enter a name to the first few letters and then use Ctrl-Space to complete the full name. If you have multiple options, they will be listed in the  search  list.  



6 , Use Ctrl-/ and Ctrl-Shift-/ to comment / uncomment lines of  code  and the  code  block.  

-/ Marked with a single line comment ("//..." ) to annotate / uncomment the current line or selectively block of  code . While Ctrl-Shift-/ can be used to block comments mark ("/ *... * ") to the selected block surrounded. To counter the annotation a  code  block in the block in any one place by Ctrl-Shift-/. 



7 , According to the Alt-Q (View|Context  Info ) may not need the mobile  code  can view the current method declarations. Two in a row by the  editor  will display the current class name.  



8 , The use of Refactor|Copy Class... You can create a copy of the selected class "". This is useful, for example, when you want to create a most content and has the same class.  



9 , In the  editor  Ctrl-D can copy the selected block or not selected block is the current line.  



10 , Ctrl-W (choice of words) in the  editor  function is the first choice of words and characters, and then select the extended area of source  code . For example, first select a method name, then the expression calls this method, and then the entire statement, then contain block, etc. 



11 , If you don't want to let the instruction event details "bright ball" icon displayed on the  editor , through the open list all events, press Alt-Enter and then use the mouse to click it can put the event text attachments bright ball set to inactive.  

After that there would be no indication of special events bright ball appeared, but you can still use it with the Alt-Enter shortcut key. 



12 , When using CodeCompletion, you can use the comma (,) character, the comma (,) a semicolon (;), spaces and other character input current highlighted pop-up list parts. The choice of the name as the input character automatic input to the  editor .  



13 , Use the Escape key in the window of any tool can be to shift the focus to the  editor .  

Shift-Escape can not only to shift the focus to the  editor  can also hide the current (or last  activity ) tool window.  

The F12 key focus from the  editor  to the most recently used a tool window.  



14 , See an easy way to any expression values in the debugger is to select the text in the  editor  (can press Ctrl-W a few times more efficiently perform this operation) and then press Alt-F8 .  



15 , The class or method to open the  editor  caret using Java document browser, press Shift-F1 (right-click menu of the External JavaDoc).  

To use this feature to add browser path, set in the "General" option (Options IDE Settings |), in addition to the Java document to create the  added  to the project( File | Project Properties ).  



16 , Using Ctrl-F12 (View File Structure Popup |) button you can quickly navigate in the current edit file.  

Then it will display the current members of the class list. Select a navigation elements and then press the Enter key or F4 key. To easily  locate  an entry in the list, just type the name.  



17 , Put the cursor in the marker or its checkpoint and press Alt-F7 in the  code  (right click menu of Find Usages... ) will quickly find use in a class, method or variable in the entire project  location



18 , According to the Ctrl-N (Go Class to |... ) and then type the class name can quickly open any one class in the editor . From the drop-down list displayed in class.  
The same way you can use Ctrl-Shift-N (Go File to |... Open the project) in non Java files. 



19 , To some places use to class, method of navigation code or variable declaration, place the cursor in the view item and press Ctrl-B. Can also press the Ctrl key at the same time in the view point, click the mouse button switch to the statement.  


20 , Place the cursor on the view point and then press Ctrl-Alt-B to navigate to the realization of the code of an abstract method. 



21 , To see a selected class inheritance hierarchy, according to the Ctrl-H (Browse Type Hierarchy). Inheritance can also activate the inheritance relationship view in the editor view the current editing class. 22 , The use of Ctrl-Shift-F7 (Search Highlight Usages in File |) can be highlighted using a variable in the current document. Press Escape to clear the highlighted.  



23 , Using Alt-F3 (Search Incremental Search |) to achieve rapid search search function in the editor.  

The input character in "Search for:" tool tips, use the arrow keys to move and backward search. Press Escape to exit. 



24 , Press Ctrl-J to perform some don't you remember Live Template abbreviation. For example, "it" and then press Ctrl-J to have a look what happens. 



25 , Introduce Variable integration to help you simplify your code in the complex statement. For example, in the following code snippet, select an expression in the code: and then press Ctrl-Alt-V . 



26 , The Ctrl-Shift-J shortcut keys to two for synthesis of line and unnecessary whitespace removed to match your code format. 



27 , Ctrl-Shift-Backspace ( Go to | Last Edit Location )Finally, a place for you to switch to code the changes.  

Many view the deeper press Ctrl-Shift-Backspace a few times to change history.  



28 , Tools Reformat Code |... According to your code style reference (see Options IDE Setting Code Style | |) format code.  

The use of Tools Optimize Imports |... You can set up (see Options IDE Setting Code Style | | | Imports) automatic "optimization" imports (remove unwanted imports etc.). 



29 , Use the IDEA Live Templates Live Templates | let you create many typical code in the blink of an eye. For example, in a method type

Then press the Tab button to see what happened.  
Mobile in the template different region with the Tab key. See Options Live Templates for more details |. 



30 , To modify the local history view of a file, right-click menu in the activation of Local VCS Show History |.... Maybe you can navigate different versions of files, have a look they are different to roll back to a previous version of any.  

Use the same menu items can also see the history of modifications in a directory. With this feature you will not lose any code. 



31 , If you want to understand the main menu, each one purpose, to move the mouse pointer to the status bar menu items and application framework bottom will show some brief description of them, it might be useful to you.  



32 , To display the line separating between methods in the editor, open the Options IDE Settings Editor | |, select the "Show method separators" check box( checkbox ).  



33 , You can quickly move between different methods in the editor using the Alt-Up and Alt-Down keys.  



34 , Use the F2/Shift-F2 key to jump in highlighting mistakes in grammar between.  

Use the Ctrl-Alt-Down/Ctrl-Alt-Up shortcut keys you can jump in the compiler error messages or lookup operation results. 



35 , According to the Ctrl-O (Code Override Methods |... ) can basically terrestrial overloaded easily method.  

To complete the current class implements (or an abstract base class) interface methods, the use of Ctrl-I ( Code | Implement Methods… ).  



36 , If you call the cursor on a method of the bracket, press Ctrl-P to display a list of available parameters. 

37 , Java document to quickly view editor caret position using the class or method, according to the Ctrl-Q (Show Quick JavaDoc from the pop-up menu.).  

38 , Like the Ctrl-Q (Show Quick JavaDoc shows the simple Java document), Ctrl-P (Show Parameter Info display parameter information), Ctrl-B (Go to Declaration to jump to the declaration), Shift-F1 (External JavaDoc external Java document) and some other shortcuts can be used not only in the editor, Can also be used in code to complete the right key list.  



39 , Ctrl-E ( View | Recent Files )Recently accessed files right click popup list. Press the Enter button to open the selected file.  



40 , Can easily to your class in IDEA, method and variable renaming and to where they are used in all automatic correction.  

Try, the editor caret placed on any one variable name and then press Shift-F6 (Refactor | Rename... ). In the dialog box to display a new type name and then press Enter. You can browse all the local use of the variable and then press the "Do Refactor" button to end the rename operation.  



41 , In any view (Project View view, Structure view View structure or other views in the rapid)

Select the edit part (type, file, method or field), according to Alt-F1 ( View | Select in… ).  


42 , Maybe you will be using SmartType code to complete the characteristics in the "new" character after the instantiation of a known type objects. For example, type the

And then press Ctrl-Shift-Space : 

43 , By using the SmartType code, such as the creation of interface in IDEA the anonymous implementation is very easy, for some, listener (monitor), you can type

Component component; 

component.addMouseListener( 

  new <caret is here>   

); 

Then press Ctrl-Shift-Space to have a look what happened.  



44 , The expressions you need to set a known types of value with the completion of SmartType code is also very helpful. For example, type the

String s = ( <caret is here>   

Press Ctrl-Shift-Space again to have a look what would occur.  



45 , In all view provides quick function: in a tree just type character can quickly locate an entry.  



46 , When you want to catch the exceptions using code segments, select the clip in the editor, press Ctrl-Alt-T (Code Surround with |... ) and then select" try/catch ". It will automatically generate code fragment thrown all abnormal catch block. In the Options File Templates Code tab | | you can also customize the catch block template.  

With the list of other items can be surrounded by other structure.  


47 , In the use of the code is complete, use the Tab key to enter the pop-up list of the highlight part.  

Unlike the Enter key to accept input, the other part of the selected name will overwrite the caret right name. A point in a method or variable name to replace another particularly useful.  


48 , In a statement to a variable code completion feature will give you display a suggested name. For example, start typing "private FileOutputStream" and then press Ctrl-Space


Can also be for local variables, the parameters in the Options IDE Setting Code Style | | in static fields, instance and custom name.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值