Eclipse shortcut key Settings Encyclopedia

Source: Internet
Author: User
Eclipse common shortcut keys

Edit shortcut Keys

"alt+/" displays code hints, as well as automatic code completion.
"ctrl+/" Add comments
"Ctrl+d" Delete when moving forward

Window shortcut keys
Maximize and restore the Ctrl+m window

View and position shortcut keys

1. "Ctrl+k", "Ctrl+shift+k"

Find the selection quickly down and up, and you will no longer need to click the Find dialog box with your mouse.

2. "Ctrl+j", "Ctrl+shift+j"

Incremental search, a very cool find shortcut key.

"Ctrl+shift+t"
"Ctrl+shift+r"
"Ctrl+shift+g"
Find references to classes, methods, and properties. This is a very useful shortcut, such as modifying the code that references a method, and you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key.
"Ctrl+shift+o"
Quickly generate import, when copying a program from the Internet, do not know how to import into the called class, try "ctrl+shift+o" shortcut keys, there will be surprises.

   "ctrl+shift+f"  
   format code, writing format specification code is a compulsory course for every programmer, when you see a piece of code very uncomfortable, select and then press "Ctrl+shift+f" Shortcut keys can format this code and, if you do not select code, format the current file (the Java file) by default. &NBSP
   "alt+shift+w"  
   Find the path in the project where the current file is located, and you can quickly locate the browser view, and if you want to find the package where a file is located, This shortcut key is useful (especially in larger projects).  

"Ctrl+l"
Navigates to a row in the current editor and is also valid for non-Java files.

9. "Alt+←", "alt+→"
Back history and forward history are useful for tracking code, and users may have looked up several related places, but may not be able to remember the order in which they are located.

"F3"
A quick way to locate a class, method, and property of the cursor position.

"F4"
Displays the inheritance relationship of the class and opens the Class inheritance view.

Debugging shortcut Keys

Some of the following shortcut keys for running debugging are available in eclipse.

1. "Ctrl+shift+b": a breakpoint that sets a breakpoint or cancels the setting on the current line.
2. "F11": Debug the Last execution of the program.
3. "Ctrl+f11": Run the last program executed.
4. "F5": Trace to the method, when the program executes to a method, you can press the "F5" key to trace to the method.
5. "F6": Step to execute the procedure.
6. "F7": After executing the method, return to the last statement that called this method.

7. "F8": Continue execution to the next breakpoint or program end.

8. "Ctrl + F2": End Debugging.

9. Ctrl + R: Jumps to the mouse row.


view Toggle shortcut keys
1. "Ctrl+f6": Switch to the next editor.
2. "Ctrl+shift+f6": Switch to the previous editor.
3. "CTRL+F7": Switch to the next view.
4. "CTRL+SHIFT+F7": Switch to the previous view.
5. "Ctrl+f8": Switch to the next perspective.

6. "Ctrl+shift+f8": Switch to previous perspective.

7. "F12": Activate editor.

"Ctrl+q": Skip to the last edit section; "Ctrl+shift+q": When the file is not saved, you can see your changes by the dark red flag next to the line number.

"Ctrl+w": Closes the currently edited file; "Ctrl+shift+w": Closes all files that have been opened

"Ctrl+e": Activates and locates a file that is currently open; "Ctrl+shift+e": Same as Ctrl+e, but you need to open a window.

"Ctrl+r": Unknown (?) "Ctrl+shift+r": Open Resource (Opening a resource file, such as a Java file, etc.)

"Ctrl+t": Quickly view class-level relationships; ' Ctrl+shift+t ': Open type (opens the specified types, such as class,interface, etc.)

"Ctrl+y": In contrast to "ctrl+z", cancels the previous undo operation "Ctrl+shift+x/y" to turn the selected font into uppercase or all lowercase.

"Ctrl+u": Unknown (?) "Ctrl+shift+u": In the current window, find the number of occurrences and list the results in the Search window.

"Ctrl+i": Indents the current line correctly or selects the row. "Ctrl+shift+i": Inspect (Debug)

"Ctrl+o": quickly lists the outline of a class. "Ctrl+shift+o": Automatically add or remove import statements

"Ctrl+p": Printer Window "ctrl+shift+p": match the beginning or end of parentheses

"Ctrl + A": Select All. "Ctrl+shift+a": Open Plug-in Artifact

"Ctrl+s": Saves the current file. "Ctrl+shift+s": Save all modified files

"Ctrl+d": Deletes a row. "Ctrl+shift+d": Unknown (. )

"Ctrl+f": Find replacement. "Ctrl+shift+f": Unknown (. )

"Ctrl+g": finds the declarations of the same name in workspace. "Ctrl+shift+g": Looking for references in workspace

"Ctrl+h": Find window. ' Ctrl+shift+h ': Open type in hierarchy (opens the specified type in the Class inheritance hierarchy window)

"Ctrl+j": Forward incremental lookup. "Ctrl+shift+i": Reverse incremental lookup (to the beginning of the document)

"Ctrl+k": Forward lookup. "Ctrl+shift+k": Reverse lookup (to start at document)

"Ctrl+l": jumps to the specified line. "Ctrl+shift+l": Lists the shortcut keys that Eclipse supports

"Shift+enter": Adds a new line to the next line in the current edit line. "Ctrl+shift+enter": New row on the current edit line

"Ctrl+z": Undo the last modification operation. "Ctrl+shift+z": Unknown (?)

"Ctrl+x": Cut the selected text (when unchecked, the behavior is more bizarre). "Ctrl+shift+x": as opposed to "ctrl+shift+y", turns the selected text into uppercase.

"Ctrl + C": Copy the selected text (when unchecked, the behavior is more bizarre). "Ctrl+shift+c": Comment Line (same as "ctrl+/")

"Ctrl + V": Paste "Ctrl+shift+v": Unknown (?)

"Ctrl+b": Build "ctrl+shift+b": Set breakpoints

"Ctrl + N": New "Ctrl+shift+n": Unknown (?)

"Ctrl+m": Maximize window and Restore "Ctrl+shift+m": Unknown (?)

"Ctrl +,": Next Annotation "ctrl+shift+,": Unknown (?)

"Ctrl +.": Previous Annotation "ctrl+shift+.": Unknown (?)

"ctrl+/": Annotation "ctrl+shift+/": Toggle Annotation

Edit shortcut key: (very important, the work of coding 80% is spent here as well as the jump between files)

CTRL + Left/right: The cursor skips over a

CTRL + Up/down: Scrolling screen, browsing code

CTRL + Home/end: Jumps to the beginning or end of a file

Shift + Left/right: selected in alphabetical order

SHIFT + Up/down: Select text from top to bottom

CTRL + SHIFT + Left/right: Select the word as the unit

CTRL + SHIFT + up/down: Jump up/down in function

ALT + Left/right: Toggles between the most recent browsing places.

ALT + up/down: Move the cursor line up/down

CTRL + ALT + up/down: Copy a row and move (conflicts on Ubuntu).

CTRL + Q: Skip to last Edit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.