IntelliJ IDEA tips
2019-11-06 20:51:43 by rushing
1, shortcuts
W + ctrl // including the relevant range of the Ctrl + Shift + F // search according to the code segment in the global ctrl + F // search file according to the current code segment Shift Shift + // search by file name in the global ctrl + D // copy the code of the current line to the next line Ctrl + the y- // delete the current line alt + the Enter // as new Date () lead packet // alt + press the Enter will "Date date =" to new Date () Ctrl + / // single-line comments, use the // Ctrl + the Shift + / // multi-line comments, use the / * * /, if the comment multiple lines of code need to select multiple lines of code // Ctrl + the Shift + / press will cancel comments Ctrl + t + alt //Select an object code, to add a try-catch, for, if- else ... and so block the Ctrl + Z // Undo the last step Alt + INSERT // add getter, setter, etc. configured the Ctrl + Alt + Space / / code hints Ctrl + b // declare the jump see the class / method information Ctrl + q // View code hints and tips specific content Ctrl + F12 // view the properties and methods of the current file, displayed in a list format Ctrl + shift Space + // when creating a new class is created automatically prompted behind new class
2, initialization code templates
Note (1) adding the class
settings -- code styles -- file and code templates
Note (2) a method for adding
settings - live templates - right click on "+" - select live template
Trigger: on one line "/ **" In the process, press tab, it can trigger. (If, after input "/ **" press "enter" will trigger default style).
3. Create a web project
(1) IDEA JSP garbled
https://www.cnblogs.com/loveer/p/11342890.html
4. Create a common project maven