Practical shortcut keys in eclipse

April 7 , 2018 _ _

15:37 These are what I usually use, and I will fill them up in the future.

Alt+/ (required for programming)

·The         role is auto-completion

· When you create a new class, the main method is not automatically added, and when you want to create the main method, you only need to type four letters main and then alt+/, then press Enter and you are done  

Or when outputting, type the four letters syso first, then alt+/, and then press Enter to generate System.out.println();

· In short, whether you are writing classes or variable names, objects, etc., type the first few letters, then alt+/, super easy to use, highly recommended

 

Ctrl + D (good to use)

· Delete the current line, or delete multiple lines

The usage is to place the mouse pointer at any position of the line to be deleted, then ctrl+d, or directly select multiple lines with the mouse and then press ctrl+d, which can delete multiple lines

 

Ctrl+/

· The function is multi-line comments. Commonly used comments are /* */ and //, but // can only comment on a single line. It is troublesome to comment on multiple lines.

The usage is to use the mouse to select the area to be annotated (just like copying the text, pull it directly), then ctrl+/ to undo the same way as the annotation, select, then ctrl+/


Shift + ctrl +f

· Automatic canonical format

· The usage is quite simple. When you have compiled the code on the current page, directly Shift+ctrl+f will make the code look more refreshing

 

Shift +home

Shift +end

            The two combinations work the same

· When you want to select a line of content, you can directly drag it with the mouse, or move the cursor to the beginning of the line, use shift+end to select the content of the current line, or move the cursor to the end of the line and use shift+home, the effect is the same

 

Alt + Up Arrow  (commonly used)

Alt + Down Arrow

· Mobile content

         Select the content you want to move, hold down alt+arrow, you can translate the code up or down


Alt + shift +s +r

Although it is long, it is very practical. When generating get and set methods, use this shortcut key to find the generated page in one step


Alt + shift +s +o

· You can directly find the page that generates the multi-parameter construction method, which is very convenient


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325578373&siteId=291194637