Intellj IDEA quick type door
Time : 2019/11/29
System : Win10 Systems
Version: Intellj Idea 2018.3
Background :
入手Intellj idea 两个月了,总结一下一些常用的快捷键,防止遗忘
content:
1. Automatic completion
Are basic sout, psvm, fori other automatically generated System.out.println, public static void main, for ().
strList.for+tab 生成for(String str:strList)
Shortcuts 1: Ctrl + Space (space), the basic code completion: class name | method name | variable name, that is the word unfinished
补全场景: StringBu ---> StringBuffer
Reference: https://www.cnblogs.com/hugogoos/p/9671557.html
Shortcuts 2: Ctrl + Shift + Space, (left to right) completion code based on the type of intelligence
补全场景: StringBuffer buffer = new
Reference: https://www.cnblogs.com/hugogoos/p/9680200.html
Shortcuts 3: Ctrl + Shift + Enter, according to the code intelligent prompts to complete the line of code, end with a semicolon
补全场景: new StringBuff ---> new StringBuffer( );
Shortcut 4: Ctrl + Alt + V, (right to left) automatically complete return value types and objects
补全场景:new StringBuffer() ---> StringBuffer sb = new StringBuffer();
Shortcuts 5: Alt + Insert, intelligent generate getter, setter, tostring, hashcode / equals
Shortcut 6: Ctrl + Alt + T, i.e. intelligent Surround-Code: the external code selected, if-else generate surrounded, try-catch, for loop, the synchronized code block