Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A complete set of practical shortcut keys for ECLIPSE

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Eclipse commonly used shortcut keys are classified and summarized, and all the practical shortcut keys are found in one net.

It also includes the shortcut keys brought by the vi plug-in.

In order to make it easier to use, custom changes have been made to some shortcut keys.

Some keyboard shortcuts often feel that the failure may have something to do with the position of the cursor, which is described in detail.

SN.Eclipse key VI key (Vrapper) Custom Desc. Category 1Alt+/

Intelligent prompt for input, the content of the prompt is related to the location of the cursor, and the constructor ranks first.

You can press alt+/, multiple times. The system will have different prompts to edit 2Ctrl+Alt+/.

Directly complete, do not pop up the selection box to edit 3Alt+Shift+A

Column editing mode switch, press esc to undo, first select in the normal way, press the shortcut key to switch to column blocks, and then edit, conflict with VI to control 4Alt+Shift+B

Enable display breadcrumb, if enabled, move the cursor to the breadcrumb to control the 5Alt+Updd, move the cursor to a line and press p

Move the selected text to the appropriate line to edit 6Alt+Downdd, move the cursor to a line and press p

Move the selected text to the appropriate line edit 7Alt+Shift+Up

Custom: restore the selected block extended to the outer layer, which is suitable for notebooks to use the selected positioning 8Alt+Shift+Down

Custom: block selected by shrinking layer expansion, suitable for notebooks to use selected positioning 9Alt+F7

Use the xml file editing window to switch between design and source views and switch window 10Alt+Shift+F7

Use the xml file editing window to switch between design and source views and switch window 11Alt+PageDown

For example, in the jsp editing page, there are two property pages: Design and Source switch window 12Alt+PageUp

For example, in the jsp editing page, there are two property pages: Design and Source switch window 13Alt+Shift+J

Insert a comment template for a class or method, etc.; you can also directly enter: / * * Edit 14Alt+Left

Track fallback; it is recommended to reset to Alt+1 to select the positioning 15Alt+Right

Track forward; recommends that you reset it to Alt+2 and select the positioning 16Alt+Shift+Left.

Is custom: modified to folding- > collapse all, collapse the entire file, shrink, suitable for notebooks to use selected positioning 17Alt+Shift+Right

Is custom: expand the currently shrunken line, if in a blank line, expand the entire file, if the cursor is over the code, then expand partially, suitable for notebooks to use selected positioning 18Alt+Shift+O

Highlight the open key and control 19Alt+Shift+Q when looking for variables

Display the view list, then enter a single letter to select the toggle window 20Alt+Shift+R

Refactoring class names, interface names, variable names, function names, etc., are also automatically replaced in all calls within the workspace. If the class name or interface name is changed, the file name is also automatically modified. Similar to Alt+Shift+T editor 21Ctrl+F10

Pop-up properties window 22Shift+F10

Right mouse button, pop-up properties menu Ctrl+Shift+F10 can also pop-up window 23Alt+Enter

Window object property pop-up window 24Alt+Shift+S

Property shortcut menu, automatically generate gettter, setter toString and other editing 25Alt+Shift+I

Select a variable, etc., merge the original two lines of statements into one line to edit the 26Alt+Shift+L

ReFactor the local variable name to define the variable and the subsequent same variable as a new variable with a different name when the cursor is over the variable (excluding the definition statement)

Select the part of the statement that can be extracted as a variable to convert the statement into two lines of writing and editing 27Alt+Shift+T

Pop-up refactoring shortcut menu, edit 28Alt+Shift+W like Alt+Shift+R

Select the available windows toggle window 29Alt+Shift+Z

Pop-up window, insert a preset block of statements or maintain a template to complete the input to edit 30Ctrl +

< (,) 向上检索本代码文件内的 警告 和异常,可以设置成只定位异常选中定位31Ctrl+>

(.)

Retrieve warnings and exceptions in this code file downwards, which can be set to locate exceptions only and select location 32Ctrl+/

Comment Editing 33Ctrl+Shift+/

Block comment Editing 34Ctrlfloor Shift +\

Undo block comment edit 35Ctrl+7

Comment Editing 36Ctrl+1

Quick repair, give suggestions to edit 37Ctrl+2, L

Smart prompt for input, such as writing obj.getAbc () first, and then pressing the shortcut key to return the value definition to edit 38Ctrl+3.

Quick access, can enter keywords to retrieve and control 39Ctrl+Shift+A

Pop-up window to find plug-in find 40Ctrl+Alt+JJ (uppercase)

Edit 41Ctrl+Ddd in parallel

Delete lines (unbind is required if you install the VI plug-in) to edit 42Ctrl+Backspacedw

Delete words forward and edit 43Ctrl+Deletedw faster

Delete words later and edit 44Ctrl+Shift+DeleteD faster (uppercase)

Delete to the end of the line edit 45Ctrl+Up

The cursor position follows the content. It is recommended to change it to Alt+J,VI custom scroll line down to select and locate 46Ctrl+Down.

The cursor does not change its position and the window content scrolls; it is recommended to change it to Alt+K,VI custom scroll line up to select and locate 47Ctrl+Shift+Up

Look up for the function name and look for 48Ctrl+Shift+Down for member variables

Search down function by function and 49Ctrl+E by member variable.

Quickly find open files, move down one bit each time you press ctrl+E to toggle window 50Ctrl+Shift+E

Pop-up window to select objects to be edited toggle window 51Shift+Entero

Insert a blank line below, regardless of whether the cursor edits 52Ctrl+Shift+EnterO (uppercase) at the end or not

Add a blank line to edit 53Ctrl+I

Row formatting. Default is the current row. 54Ctrl+Shift+F is applied to all rows when all is selected.

Automatically correct the format of the selected text, such as extra spaces, unreasonable line breaks, etc. Edit 55Ctrl+F3

Display the current object hierarchy where the cursor is located, compare the interface with the inherited object, and click again to display the return value type. when the cursor is over the class where the call is, it shows more internal class lookup 56Ctrl+F6 than ctrl+O.

Dynamically toggle the open file switch window 57Ctrl+Shift+F6

Toggle the previous edit text toggle window 58Ctrl+F7

Dynamically switch view toggle window 59Ctrl+Shift+F7

Toggle previous view toggle window 60Ctrl+F8

Dynamically switch perspective toggle window 61Ctrl+Shift+F8

Toggle previous perspective toggle window 62Ctrl+G

Declarations in workspace- object definition location, displaying the find 63Ctrl+Shift+G in the search window

The reference in workspace- cursor falls over an object, and the file referencing the object in workspace is displayed in the search window to find 64Ctrl+Shift+U.

Find where the content is used, and display the find 65Ctrl+Alt+G in the search window

Find the selected word, display it in the search window, and find 66Ctrl+H by full-text search

Pop-up lookup window to find 67Ctrl+Home1G (uppercase)

Go back to the beginning of the document and select the location 68Ctrl+EndG (uppercase)

Select locate 69Ctrl+Shift+Insert at the end of the file

Intelligent insertion mode, enter closing parentheses, quotation marks and other automatic pairing to select and locate 70Ctrl+J/xxx

To find the method down, press the shortcut key, enter what you want to find directly, and use it with Ctrl+K to find 71Ctrl+Shift+J/xxx and hit N (uppercase).

Hit the shortcut key, directly enter what you want to find, ESC can clear the cache, look up to find 72Ctrl+K/xxx and then hit n

Find the location of the content found by the next Ctrl+J search, find 73Ctrl+Lnn + G (uppercase)

Locate 74Ctrl+Shift+L in a selected row

Show all available shortcuts and use them directly in enter; press again to open the shortcut configuration table to control 75Ctrl+Leftw or W

Move the cursor position in terms of words and select 76Ctrl+Rightb or B

Move the cursor position on a word-by-word basis and select 77Ctrl+Shift+Leftviw, and continue to use the left and right keys

Select one word at a time, select 78Ctrl+Shift+Rightviw, and continue to use the left and right keys

Select the next word, select and locate 79Ctrl+M

Window maximization and minimization control 80Ctrl+N

Create a new object to control 81Ctrl+O

Display object outline, than ctr+F3 to display the outline of the object where the cursor is located, and then press to display the return value type again. When the cursor is over the class where the cursor is called, there are fewer internal classes than Ctrl+F3; the contents of the list are displayed in the order in the code, and F4 is sorted alphabetically. Find 82Ctrl+Shift+M

Place the cursor over the object that reported the error, and automatically import the package to edit 83Ctrl+Shift+O after hitting the shortcut key.

After locating the object, it is recommended that the package editing 84Ctrl+Shift+P available to import

Match the parentheses that appear in pairs to select and locate 85Ctrl+Q

Return to the last edit position and select the location 86Ctrl+Shift+S

Save all Control 87Ctrl+T

If the cursor is over a class or abstract class or interface name, displays all subtypes that inherit or implement that type, and shows the class hierarchy (all superiors and subordinates), if the cursor is not useful elsewhere. Press ctrl+T again to show the parent class and interface of the class, that is, CTRL+T can switch display supertype and subtype; twice for the @ override method, and you can also look up the method in the parent class to find 88Ctrl+Shift+H through ctrl+T.

Open Type in Hierarchy, enter the class name in the pop-up window and display the class hierarchy (all superiors and subordinates). The bottom of the window shows the JAR package to which the class belongs, including the compiled classes in the package, which is more than ctrl+shift+R, see F4

Enter "HaMa" to find HashMap (case sensitive) to find 89Ctrl+Shift+R

Pop-up filter resources window to find 90Ctrl+Shift+T by file search, JAVA file, XML file, properties file, etc.

Filter class window, you can find inner classes

Enter "HaMa" to find HashMap (case sensitive) to find 91Ctrl+Shift+X

Select all uppercase edit 92Ctrl+Shift+Y

Select all lowercase editing 93Ctrl+W

Close window control 94Ctrl+Shift+W

Turn off control 95F12 for all

The cursor focus returns to the text recording window control 96F2

Rename the object in the javadoc;project explorer window of the current object; when the cursor is over the class or variable, the pop-up window displays the comments of the class or object; you can display the class to which the object belongs, edit and control the 97Shift+F2

Open javadoc window Toggle window 98F3

Open the object definition window to find 99F4

According to the currently selected object, the Type Hierarchy window displays the class hierarchy (all superiors and subordinates), the included variables, functions, and the package path or jar package name and path at the bottom. The contents of the list are sorted alphabetically! Refer to Ctrl+Shift+H to find 100Shift+F5

Skip content when enabling / turning off debugging, maintain debug 101F11 in step filtering

Debug execution Debug 102CTRL+F11

Perform debugging 103F5

Debugging goes to the next level of debugging 104F6

Debug execute next statement debug 105F7

Debug goes back to the previous level of debugging 106ctrl+R

Debug 107Ctrl+U to the line where the cursor is currently located

When debug, enter a piece of code in the display window. After selecting the code, click ctrl+U to execute the selected text to debug 108Ctrl+Shift+I.

In debug mode, the detailed data information of the object where the object cursor is located is displayed. Debug 109shiftkeeper ~

Convert the focus word to case edit 110Ctrl + "+"

Enlarge the font size in the editing area zoom out; Oxygen added control 111ctrl + "-"

Reduced editor font size zoom in; Oxygen added control 112

Nn + dd

Delete specified number of rows edit 113

: n1,n2 co n3

Copy the contents between lines N1 and N2 to edit 114 after line n3

: set ic or: set noic

Sets whether case editing is ignored when looking up

K

Edit the cursor up 116

J

Edit the cursor down 117

L

Edit 118 to the right of the cursor

H

The cursor wants to edit 119 to the left.

Ctrl+u

Turn the page up and edit 120

Ctrl+d

Turn the page down and edit 121

Yy

Copy a line to edit 122

Nn + yy

Copy nn line contents to clipboard editor 123

P

Paste the contents of the clipboard to edit 124

: s/aaa/bbb

This line replace operation, replace only one editor 125

: s/aaa/bbb/g

This line replacement operation, all replace edits 126

:% s/aaa/bbb/g

Replace all aaaa in the current text to edit 127for bbb

G/aaa/d

Delete line edits that contain aaa in the text

Set to ignore case by default

Under the windows system, place the file: _ vrapperrc in the current user directory, and the contents of the file are edited by set ic

.

Repeat the previous operation, edit

The official website address of the VI plug-in is attached:

Http://vrapper.sourceforge.net

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report