Eclipse shortcut key fail + shortcut key Daquan

Source: Internet
Author: User
Tags comments delete key lowercase

Eclipse alt+/Shortcut key method to resolve eclipse use time is not long, see a lot of fast code writing method, but alt+/this method to me how to invalidate it?

Especially often used to System.out.println (), many articles are said to input sysout and then press alt+/can be automatically converted, but I how to test all invalid, looking for information everywhere ....

The usual reason is that because of the conflict of shortcut keys, the default shortcut key of the 1.7.1 I use is the shortcut key of the input method Ctrl+space.

So in windows->preference->general->keys-> input assis will appear content Assist, select, change,

Set the shortcut key of Word completion Alt+c 2, change the shortcut key of content assist from Ctrl+space to alt+/

and then save.


It turns out that there are different versions of Eclipse on the setup issue. I'm using Eclipse 3.1.1 to find content Assist in Window-preferences-general-keys and find his shortcut is Ctrl+spacebar it's not a quick conflict with our OS IME. it. No wonder it doesn't work, it's set to atl+/. Note, however, that if there are other places in the keys that are used to alt+/, the shortcut keys cannot be the same. Then everything is OK. Attached: Brief method: In Window-preferences-general-keys 1, the word completion shortcut keys set Alt+c 2, the content assist shortcut keys from Ctrl+space to alt+/

(Note: When the choice of when not the wrong choice editing text (including in Java, in JSP), select in window or there is a problem, it seems that the collection is too large, but not recognized)

--------------------------------------------------------------------------------------------------------------- --

The eclipse version is often different for each project, and after a change, the alt+/fails, but this feature is most commonly used:) Workaround: Within the Window-preferences-general-keys

1. Set the shortcut keys for Word completion alt+c

2, the Content assist shortcut key changed from Ctrl+space to alt+/

--------------------------------------------------------------------------------------------------------------- ----------

Eclipse Shortcuts Daquan March 21, 2007 Wednesday 14:03eclipse shortcut key Daquan 1. Common shortcut keys
(1) Ctrl+space
Description: Content Assistant. Provides hints for methods, variables, parameters, Javadoc, etc.
Should be shipped in a variety of occasions, in short need to prompt the time you can press this shortcut key.
Note: Avoid the switch settings in the Input method conflict with this setting

(2) Ctrl+shift+space
Description: Variable hints
(3) ctrl+/
Description: Add/Remove//comment, in eclipse2.0, remove comment as ctrl+\

(4) ctrl+shift+/
Description: Add a comment

(5) Ctrl+shift+\
Description: Remove Comments

(6) Ctrl+shift+f
Description: Automatic Formatting code

(7) Ctrl+1
Description: Bulk modification of variable names in source code, also available on catch blocks.

(8) Ctril+f6
Description: Interface switch

(9) Ctril+shift+m
Description: Find the package you need

(10) Ctril+shift+o
Description: Automatically introduces the required packages

(11) Ctrl+alt+s
Description: Source code to get a shortcut menu. One of the generate getters and setters and Surround with Try/catch
Blocks are more commonly used. It is recommended to add them as shortcut keys. Shortcut keys set in Windows->preferences->workbench->keys

2. List of shortcut keys

Edit
scope function Shortcut keys
Global Find and replace Ctrl+f
Text Editor Find previous Ctrl+shift+k
Text Editor Find Next Ctrl+k
Global Undo Ctrl + Z
Global Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
Global all check Ctrl + A
Delete delete globally
Global Context information ALT +. Alt+shift+? Ctrl+shift+space
Java Editor display tooltip description F2
Java Editor Select encapsulated element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next element alt+shift+→
Text Editor incremental find Ctrl+j
Text Editor incremental reverse lookup ctrl+shift+j
Global Paste Ctrl + V
Global Redo Ctrl+y

View
scope function Shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-

Window
scope function Shortcut keys
Global activation Editor F12
Global Switch Editor Ctrl+shift+w
Global on an editor Ctrl+shift+f6
Globally on a view CTRL+SHIFT+F7
Global on a Perspective view Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Perspective Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-

Navigation
scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open claims F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
Global on a CTRL +,
Global Next Ctrl +.
The Java Editor displays outline Ctrl+o
Global open type Ctrl+shift+h in the hierarchy
Global go to matching parentheses ctrl+shift+p
Global go to previous edit location Ctrl+q
The Java editor goes to the previous member Ctrl+shift+↑
The Java editor goes to the next member Ctrl+shift+↓
Text editor go to line ctrl+l

Search
scope function Shortcut keys
Global presence in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Claims in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g

Text editing
scope function Shortcut keys
Text Editor overwrite toggle Insert
Text Editor Roll Line ctrl+↑
The text editor scrolls the line ctrl+↓

File
scope function Shortcut keys
Global Save Ctrl+x Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4
Global Save All Ctrl+shift+s
Global all off CTRL+SHIFT+F4
Global Properties Alt+enter
Global New CTRL + N

Project
scope function Shortcut keys
Global All Build Ctrl+b

Source
scope function Shortcut keys
Java Editor Formatting ctrl+shift+f
Java Editor Uncomment ctrl+\
Java Editor Comment ctrl+/
Java Editor Add import ctrl+shift+m
Java Editor Organization import Ctrl+shift+o
The Java Editor uses try/catch blocks to surround the settings, which are too common, so it is recommended to set them up here.
You can also use ctrl+1 to automatically fix it.

Run
scope function Shortcut keys
Global single-Step return F7
Global single-Step skip F6
Global single-step jump into F5
Global single-Step jump selection Ctrl+f5
Global Debug Last started F11
Global Continue F8
Global use filters to step SHIFT+F5
Global Add/Remove breakpoints Ctrl+shift+b
Global Display Ctrl+d
Global Run last boot ctrl+f11
Global Run to row ctrl+r
Global Execution Ctrl+u

Refactoring
scope function Shortcut keys
Global Undo Refactoring Alt+shift+z
Global Extraction Method Alt+shift+m
Global decimation local variable alt+shift+l
Global inline Alt+shift+i
Global Mobile Alt+shift+v
Global Rename Alt+shift+r
Global Redo Alt+shift+y





Because of the Eclipse+myeclipe plug-in development used by the new company, MyEclipse's plug-in support for hibernate and struts is much easier than the idea operation, and the original Hibernate Pojo and config XML are written by their own ant files , although the same functionality can be achieved, but ant write it really good time, and error after the problem is very inconvenient, in the preparation of struts, the original has been hand-written xml,form,action and JSP, this development efficiency is low, in order to be able to integrate into the new work environment as soon as possible, To ensure the development speed, we must now learn the use of eclipe.

In fact, the development of tools personally think that the general is the same, the difference is only the use of shortcut keys, and the shortcut key is a weapon in development, so start from the shortcut key to learn it.

Eclipse Shortcut Key Guide

This document is collated from the Eclipse software and lists the standard shortcut keys, which are not listed in the Emacs shortcuts.

Edit
scope function Shortcut keys
Global Find and replace Ctrl+f
Text Editor Find previous Ctrl+shift+k
Text Editor Find Next Ctrl+k
Global Undo Ctrl + Z
Global Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
Global all check Ctrl + A
Delete delete globally
Global Context information ALT +.
Alt+shift+?
Ctrl+shift+space
Java Editor display tooltip description F2
Java Editor Select encapsulated element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next element alt+shift+→
Text Editor incremental find Ctrl+j
Text Editor incremental reverse lookup ctrl+shift+j
Global Paste Ctrl + V
Global Redo Ctrl+y



View
scope function Shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-



Window
scope function Shortcut keys
Global activation Editor F12
Global Switch Editor Ctrl+shift+w
Global on an editor Ctrl+shift+f6
Globally on a view CTRL+SHIFT+F7
Global on a Perspective view Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Perspective Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-


Navigation
scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open claims F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
Global on a CTRL +,
Global Next Ctrl +.
The Java Editor displays outline Ctrl+o
Global open type Ctrl+shift+h in the hierarchy
Global go to matching parentheses ctrl+shift+p
Global go to previous edit location Ctrl+q
The Java editor goes to the previous member Ctrl+shift+↑
The Java editor goes to the next member Ctrl+shift+↓
Text editor go to line ctrl+l


Search
scope function Shortcut keys
Global presence in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Claims in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g


Text editing
scope function Shortcut keys
Text Editor overwrite toggle Insert
Text Editor Roll Line ctrl+↑
The text editor scrolls the line ctrl+↓


File
scope function Shortcut keys
Global Save Ctrl+x
Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4


Eclipse's editing capabilities are powerful, and mastering the Eclipse shortcut key capabilities can greatly improve development efficiency. There are several shortcut keys related to editing in Eclipse.
1. "Alt+/"
This shortcut is a good helper for the user to edit, can provide users with the content of the auxiliary, do not worry about the method and the name of the property, when not the whole class, methods and attributes of the name, more experience the "alt+/" shortcut to bring the benefits of it.

2. "Ctrl+o"
shows an outline of the methods and properties in a class that quickly locates the methods and properties of a class and is useful for finding bugs.

3. "Ctrl+/"
Quickly add comments, can quickly add a comment or uncomment the line of the cursor or the selected line, you may always need to annotate something or uncomment it when debugging, and now it's okay to repeat the comments on each line.

4. "Ctrl+d"
Delete the current line, which is also the author's favorite one, do not have to delete a row and press so many times the delete key.

5. "Ctrl+m"
Window maximization and restore, when the user in the window to operate, always feel that the current window is small (especially when writing code), now good, try "ctrl+m" shortcut keys.

Viewing and locating shortcut keys

In the program, quickly locate the location of the code, quickly find the place where the bug is very difficult, Eclipse provides a powerful search function, you can use the following shortcut keys to help complete the job of locating.

1. "Ctrl+k", "Ctrl++shift+k"
Find the selection quickly down and up, and you no longer need to click the Find dialog box with your mouse.

2. "Ctrl+shift+t"
Find a Java class file in the search workspace (Workspace) build path, and do not suffer from the need to find a class, and you can use "*", ". "And so on wildcard characters.

3. "Ctrl+shift+r"
As with "Ctrl+shift+t", find all the files in the workspace (Workspace), including the Java files, or you can use a wildcard character.

4. "Ctrl+shift+g"
Find references to classes, methods, and properties. This is a very useful shortcut key, such as to modify the code that refers to a method, you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key.

5. "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.

6. "Ctrl+shift+f"
Format code, write the code of the format specification is a compulsory lesson for every programmer, when see a piece of code is very uncomfortable, select and press "ctrl+shift+f" shortcut key can format this code, if the code is not selected the default format of the current file (Java file).

7. "Alt+shift+w"
Find the path in the project where the current file is located, and you can quickly locate the location of the browser view, which is useful if you want to find a package that contains a file (especially in larger projects).

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

9. "Alt+←", "alt+→"
Backward history and forward history are useful in tracking code, and users may find several associated places, but they may not be able to remember the order in which they are located by these two shortcut keys.

10. "F3"
A class, method, and property that quickly locates the cursor position.

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

Debugging shortcut Keys

There are several shortcut keys in eclipse that are related to running debugging.

1. "Ctrl+shift+b": Sets a breakpoint at the current line or cancels the set breakpoint.
2. "F11": Debug the Last executed program.
3. "Ctrl+f11": Run the last executed program.
4. "F5": Trace into the method, when the program executes to a method, you can press the "F5" key to trace to the method.
5. "F6": Step Into the program.
6. "F7": Executes the method, returning to the next statement that called this method.
7. "F8": Continue execution to the next breakpoint or end of the program.

Common editor shortcut keys

Usually the text editor provides some shortcut keys related to editing, which you can also use to edit text in eclipse.
1. "Ctrl + C": Copy.
2. "Ctrl+x": Cut.
3. "Ctrl + V": Paste.
4. "Ctrl+s": Save the file.
5. "Ctrl + Z": Undo.
6. "Ctrl+y": Repeat.
7. "Ctrl+f": Find.

other shortcut keys

There are many shortcuts in eclipse that cannot be enumerated, and users can find out how to use them through the Help document, as well as several common 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 the previous perspective.

There are many shortcuts in eclipse, which can be used to find all the shortcuts through the Help document, but it is not possible to master the use of all shortcuts, and it is not necessary to take a moment to familiarize yourself with the shortcut keys listed in this section.

All: ————————————

Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)
Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)
Alt+↑ the current line and the upper row interaction position (IBID.)
alt+← the previous edited page
alt+→ next Edit page (of course, for the above article)
Alt+enter displays the properties of the currently selected resource (project, or file or file)
Shift+enter inserts a blank row on the next line of the current row (at which point the mouse can be at any position in the current row, not necessarily the last)
Shift+ctrl+enter Insert blank line in current line (principle above)
Ctrl+q positioning to the last edited place
Ctrl+l positioning in a row (for people with programs over 100 have the gospel)
Ctrl+m maximize the current edit or view (and vice versa)
ctrl+/comment on the current line, and then uncomment it
Ctrl+o Quick Display OutLine
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w Closing the current editer
Ctrl+k the selected word quickly navigates to the next
Ctrl+e quick display of the current Editer drop-down list (in bold if the current page does not appear)
ctrl+/(numpad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
Ctrl+space Code Helper to complete the insertion of some code (but the general and IME conflict, you can modify the input method hotkey, you can also take up alt+/to replace)
Ctrl+shift+e Display manager that manages all of the currently open view (you can choose to close, activate, and so on)
Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not, it is not found in the Stutes line, check a word, especially useful, this function idea two years ago)
CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)
Ctrl+shift+f4 Close all open editer
Ctrl+shift+x the text that is currently selected is all stale lowercase
Ctrl+shift+y turns the currently selected text to lowercase
Ctrl+shift+f formatting of the current code
Ctrl+shift+p position to the match (for example {}) (after locating from the front, the cursor is in the match, back to front, or vice versa)

The following shortcut keys are commonly used in refactoring, I like and commonly used to tidy up (note: General refactoring of the shortcut keys are alt+shift beginning of the)
Alt+shift+r rename (is my own favorite, especially the variables and classes of rename, than the manual method can save a lot of labor)
Alt+shift+m Extraction Method (This is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)
Alt+shift+c Modify the function structure (more practical, there are n functions called this method, modified once done)
Alt+shift+l extract Local variables (you can directly extract some magical numbers and strings into a variable, especially when multiple calls are made)
Alt+shift+f change the local variable in class to a field variable (more useful function)
Alt+shift+i Merge variables (this may be a bit inappropriate inline)
ALT+SHIFT+V moving functions and variables (not commonly used)
Alt+shift+z reconstruction of Regret medicine (Undo)

Edit
scope function Shortcut keys
Global Find and replace Ctrl+f
Text Editor Find previous Ctrl+shift+k
Text Editor Find Next Ctrl+k
Global Undo Ctrl + Z
Global Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
Global all check Ctrl + A
Delete delete globally
Global Context information ALT +.
Alt+shift+?
Ctrl+shift+space
Java Editor display tooltip description F2
Java Editor Select encapsulated element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next element alt+shift+→
Text Editor incremental find Ctrl+j
Text Editor incremental reverse lookup ctrl+shift+j
Global Paste Ctrl + V
Global Redo Ctrl+y

View
scope function Shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-

Window
scope function Shortcut keys
Global activation Editor F12
Global Switch Editor Ctrl+shift+w
Global on an editor Ctrl+shift+f6
Globally on a view CTRL+SHIFT+F7
Global on a Perspective view Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Perspective Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-

Navigation
scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open claims F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
Global on a CTRL +,
Global Next Ctrl +.
The Java Editor displays outline Ctrl+o
Global open type Ctrl+shift+h in the hierarchy
Global go to matching parentheses ctrl+shift+p
Global go to previous edit location Ctrl+q
The Java editor goes to the previous member Ctrl+shift+↑
The Java editor goes to the next member Ctrl+shift+↓
Text editor go to line ctrl+l

Search
scope function Shortcut keys
Global presence in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Claims in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g

Text editing
scope function Shortcut keys
Text Editor overwrite toggle Insert
Text Editor Roll Line ctrl+↑
The text editor scrolls the line ctrl+↓

File
scope function Shortcut keys
Global Save Ctrl+x
Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4
Global Save All Ctrl+shift+s
Global all off CTRL+SHIFT+F4
Global Properties Alt+enter
Global New CTRL + N

Project
scope function Shortcut keys
Global All Build Ctrl+b

Source
scope function Shortcut keys
Java Editor Formatting ctrl+shift+f
Java Editor Uncomment ctrl+\
Java Editor Comment ctrl+/
Java Editor Add import ctrl+shift+m
Java Editor Organization import Ctrl+shift+o
The Java Editor uses try/catch blocks to surround the settings, which are too common, so it is recommended to set them up here.
You can also use ctrl+1 to automatically fix it.

Run
scope function Shortcut keys
Global single-Step return F7
Global single-Step skip F6
Global single-step jump into F5
Global single-Step jump selection Ctrl+f5
Global Debug Last started F11
Global Continue F8
Global use filters to step SHIFT+F5
Global Add/Remove breakpoints Ctrl+shift+b
Global Display Ctrl+d
Global Run last boot ctrl+f11
Global Run to row ctrl+r
Global Execution Ctrl+u

Refactoring
scope function Shortcut keys
Global Undo Refactoring Alt+shift+z
Global Extraction Method Alt+shift+m
Global decimation local variable alt+shift+l
Global inline Alt+shift+i
Global Mobile Alt+shift+v
Global Rename Alt+shift+r
Global Redo Alt+shift+y

transferred from: http://blog.sina.com.cn/s/blog_8b7ca01301013swl.html

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.