当前位置:网站首页>Elaborate on the operation of idea

Elaborate on the operation of idea

2022-06-23 07:17:00 The bad guy is stupid

Interface settings

  1. Ctrl + F4 : Close the current tab page
  2. Alt + 1: Focus your mouse on project In the view
  3. Ctrl + Shift +← or →: Or so mobile project The dividing line between the view and the code area , The premise is that the mouse focus is positioned at project In view ;
  4. Alt +F1 eject select in View , And then choose Project view Medium project, enter , Locating classes in project The location of
  5. Alt +V , Get rid of Navigationbar : Remove the navigation bar
  6. Alt + Home: Show navigation
  7. Ctrl + Tab : A switchable view pops up , You can select the view to switch .

Convenient development

One 、 Search for

  1. Ctrl + N : Search by class name
  2. Ctrl + F: Search within the current file
  3. Ctrl + Shift + F: Global search
  4. Ctrl + Shift + Alt + N: Fuzzy search method name
  5. Ctrl + Shift + N : Fuzzy search directory
  6. Ctrl + E : open A record of a file that has been opened ;
  7. Ctrl + Shift + E : 6 Enhanced Edition

Two 、 Code generation

  1. Ctrl + O : Select override parent method ;
  2. Ctrl + Shift + Enter: Closing operation , Automatic completion of curly braces, semicolons, etc ;
  3. Alt + Insert : Automatic generation get/set And construction methods ;

3、 ... and 、 Code auto completion

  1. var Statement : Such as the input “aaa”.var Automatic completion is string  a =“aaa”;
  2. for/fori Traverse : Such as list.for/fori Automatic completion is for(Obejct  o:list){...} or for(int i=0;i<list.size();i++){...};
  3. null or notnull Judge :person.null/notnull Automatic completion is if(person == null){...} or if(person != null){...};
  4. nn The verdict is not empty : Such as person.nn Automatic completion is if(person !=null);
  5. if conditional :xx>0.if Automatic completion is :if(xx > 0){...};
  6. cast Strong go : Object a=“aa”, Input a.cast Automatic completion is (String)a;
  7. return Return value :“aa”.return Automatic completion is return "aa";
  8. sout: Generate System.out.println()
  9. psvm: Generate main Method ;
  10. sout: Generate System.out.println()

Four 、 other

  1. Ctrl + Shift + Direction key ↑ and ↓ : Move code up or down
  2. Ctrl + Alt + B( Or left mouse button ): Enter the implementation method of the interface method ;
  3. Ctrl + Alt + U: Show the inheritance diagram of this class
  4. Ctrl + Alt + Direction key ← and → : Forward or backward
  5. Ctrl + G : Jump to a line
  6. Ctrl + Shift + U : toggle case

Operation and debugging

  1. Ctrl + F10: Thermal deployment tomcat project ;
  2. F7: Step by step debugging , Go inside the method ;
  3. F8: Step by step debugging , Not inside the method ;
  4. F9 Carry on , Go to the next breakpoint or finish executing the program
  5. Shift+F7: Select the method to enter ;
  6. Shift+F8: Jump out of the way ;
  7. Alt+F8: Execute the expression to see the result ;
  8. Alt+F9: Run to breakpoint ;
  9. Ctrl+F8 Set up / Cancels the current line breakpoint ;
  10. Ctrl+Shift+F8 View breakpoints ;

Idea Configuration article

  1. Idea Console color output settings
  2. Idea To configure Terminal by Git Command terminal :

Seting→Terminal: To configure Shell path by git...ext

原网站

版权声明
本文为[The bad guy is stupid]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230623047937.html