IDEA shortcuts to quickly fix errors

Sometimes writing code in IDEA, the error message appears, such as the need to handle exceptions

Move the cursor to the error, which is the place to draw the red line, the first line will be a small light bulb, click Figure II appears, follow the prompts can be repaired

But sometimes, the cursor is gone is gone, you have to move the cursor past some trouble

At this point you can Alt + Enter

Further Alt + Enter the name used in the method, may be added javadoc

Guess you like

Origin www.cnblogs.com/noteless/p/11462820.html