"Reprint" Eclipse shortcut key Daquan

Source: Internet
Author: User

Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say) Ctrl+d: delete When moving forward  ctrl+alt+↓ Copy the current row to the next row (copy increase) ctrl+alt+↑ Copy the current line to the previous row (copy increase) alt+↓ the current line and the following line interact (especially useful, you can save the first cut, then paste) alt+↑ the current row and the previous row interaction position ( IBID.) alt+← the previous edited page alt+→ the next edited page (of course, for the above article) Alt+enter displays the properties of the currently selected resource (project, or file or file) Shift+enter insert a blank row on the next line of the current row ( At this point the mouse can be in any position of the current line, not necessarily the last) Shift+ctrl+enter insert a blank line in the current line (the principle above) Ctrl+q to the last edit place Ctrl+l positioned in a row (for the program more than 100 people have the Gospel) ctrl+m Maximizes the current edit or view (and then vice versa) ctrl+/comment on the current line, then uncomment ctrl+o quick display OutLine ctrl+t quickly display the inheritance structure of the current class Ctrl+w close the current editer ctrl+k reference selected word quick fix Bit to next ctrl+e quickly displays the current Editer drop-down list (if the current page does not appear in bold) ctrl+/(keypad) collapses all code in the current class ctrl+x (keypad) expands all code in the current class Ctrl+space Code helper to complete some code insertion (but general and input method conflict, you can modify the input method hotkey, you can also take up alt+/to replace) ctrl+shift+e display management of all currently open View Manager (can choose to close, activate, etc.) Ctrl+j forward Incremental lookup ( After you press ctrl+j, each letter editor you enter provides a quick match to locate a word, if not, the display in Stutes line is not found, check a word, especially useful, this function idea two years ago) Ctrl+shift+j Reverse Incremental lookup ( The same as the previous one, but from the back forward) Ctrl+shift+f4 close all open Editer ctrl+shift+x the currently selected text all stale lowercase ctrl+shift+y The currently selected text all lowercase ctrl+shift+f Formatting the current code ctrl+shift+p 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: The General refactoring of the shortcut keys are the beginning of the Alt+shift) alt+shift+r rename (is my own favorite use of one, especially variables and classes of rename, Save a lot of labor than a manual method) the Alt+shift+m extraction method (which is one of the most commonly used methods in 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 magic numbers and strings into a variable, especially when multiple calls) alt+shift+f the local variable in class into a field variable (more useful function) alt+shift+i merge variable ( Maybe that's a little inappropriate. inline) alt+shift+v move functions and variables (not commonly used) alt+shift+z reconstruction of Regret medicine (Undo)

Editing the scope feature shortcut keysGlobal Find and replace Ctrl+fText Editor Find previous Ctrl+shift+kText Editor Find Next Ctrl+kGlobal Undo Ctrl + ZGlobal Replication Ctrl + CGlobal Restore Previous selection alt+shift+↓Global clipping Ctrl+xGlobal Quick Fix ctrl1+1  Global content Auxiliary alt+/  Global All selected Ctrl+A< Span class= "Apple-converted-space" >  global Delete delete  Global Contextual information ALT +? Alt+shift+? Ctrl+shift+space  Java Editor display tooltip description F2   Java Editor Select package 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< Span class= "Apple-converted-space" >  Global paste Ctrl+v  Global Redo Ctrl+Y  & nbsp View scope features shortcut keys   Global zoom Ctrl+=  Global Zoom Out ctrl+-

Window scope function Shortcut Global Activation Editor F12 Global Switch Editor CTRL+SHIFT+W Global one editor Ctrl+shift+f6 global View Ctrl+shift+f7 full   Bureau previous perspective Ctrl+shift+f8 Global Next editor Ctrl+f6 global next View Ctrl+f7 Global Next Perspective ctrl+f8 Text Editor display ruler context menu Ctrl+w Global Display View menu CTRL+F10 Global Display system menu alt+-

Navigation scope feature shortcut keysJava Editor Open Structure ctrl+f3Global Open Type Ctrl+shift+tGlobal Open type Hierarchy F4  Global open Declaration F3  global open external Javadoc Shift +f2  global Open Resource Ctrl+shift+r  Global Fallback history Alt+←  Global Advance History alt+→  Global Previous Ctrl+,  Global Next Ctrl+.  global Open type Ctrl+shift+h  global go to matching parentheses ctrl+shift+p  Global go to previous edit position Ctrl+Q< Span class= "Apple-converted-space" >  Java Editor go to previous member Ctrl+shift+↑  Java editor go to next member Ctrl+shift+↓  text editor go to line ctrl+l

The search scopes feature shortcut keys appear globally in the file Ctrl+shift+u Global Open Search dialog box ctrl+h Global Workspace declarations ctrl+g references inthe global workspace ctrl+shift+g /c2>

Text editing scope feature shortcut key text editor overwrite toggle Insert Text Editor Roll line ctrl+↑ text editor scroll line ctrl+↓

File scope function shortcut key Global save ctrl+x ctrl+s Global print ctrl+p global shutdown CTRL+F4 global all save Ctrl+shift+s global all close Ct RL+SHIFT+F4 Global Properties Alt+enter Global New CTRL + N

Project scope feature shortcut key Global all build ctrl+b

Source code scope feature shortcut   Java editor formatting ctrl+shift+f   Java editor uncomment Ctrl+\  Java Editor comments Ctrl+/  Java Editor Add import ctrl+shift+m  Java Editor using Try/catch block to surround not set, too common, so listed here, Recommend setting yourself. You can also use ctrl+1 to automatically fix it.

Run scope feature shortcut key   Global Single Step back F7  Global Single-Step skip F6  global stepping into F5  Global single-step jump Select Ctrl +f5  global debug last started F11  Global continue F8  global use filters stepping Shift+f5  Global Add/Remove breakpoints Ctrl +shift+b  Global display Ctrl+d  Global Run last started Ctrl+f11  Global Run to row Ctrl+r  Global execution Ctrl+u

Refactoring scope function shortcut key 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 Move alt+shift+v Global rename alt+shift+r global redo alt+shift+y

In terms of the use of eclipse, there are actually things that are small tricks. Knowing the common techniques of eclipse is a great convenience for programming. I always use the mouse operation, and some function points several times the mouse, what are the Eclipse hotkey?

Hotkeys are one of the most common techniques used in eclipse. I usually use eclipse programming, I most commonly used three combination hotkey: 1.alt+/code hint function, programming preferred hotkey familiar with Delphi programming colleagues often change it to ctrl+space

2.ctrl+shift+f code layout in order for you to write the program code layout clearer, you can try to use the hotkey 3.ctrl+shift+o to organize your import portion of the content, will remove the extra import items out more hotkeys can be in window->p References->general->keys View

two. Some code or comments appear in almost every class, I want to use a convenient way to automatically generate, what should I do?        You can customize the template in Eclipse, just enter the name of the template to help you build your pre-defined template code. Personalized annotations, log4j recorder, etc. can be customized templates, let Eclipse help you to easily generate the code you need. The Eclipse custom template is set in Window->preferences->java->editor->templates.

three. I want to change the default font size and color of eclipse, what should I do? if you use a 19 "large LCD screen, then you might as well turn out the default size of Eclipse 10th to protect your eyes. Or you'd think Eclipse's default color settings don't look good. Then you can look at window->preferences->appearance->colors and fonts.

four. I accidentally closed a view window, how do I make it appear again? Encounter This problem, you can see here window->show view

Five. I eclispe the default workbench layout is not convenient, how to switch the layout of the workbench? Eclispe provides a lot of workbench layouts to facilitate the development of different types of projects, in Eclipse, called Perspective (Perspective). You can toggle the perspective in Window->open perspective.

Six. Eclipse can be expanded through plugins, I found a useful plugin, how to install it? the most convenient way is to download the plug-in, and then extract to the Eclipse->plugins directory, as well as the Eclipse->features directory (if there is features). If the network installation method is provided, you can click on Next->new remote site via help->software updates->find and install, and the page appears. Fill in the name and URL of your plugin and follow the prompts to install it.

There is another way is to first download the plug-in program to the local, with the network installation process is similar, not much to say, online related information is more.

Seven. My project can't be compiled automatically, what's going on?

If you encounter this problem, you may have a fatal error in your project, and you must first exclude it and compile it. I have the code neat, usually see the red fork and all kinds of eclipse hints, [wiki] feel [/wiki] uncomfortable, first ruled out and then quickly.

In addition, eclipse defaults to automatically compile when you modify the program, and if it doesn't compile automatically, you can see if the Project->build automatically option is selected. If you want to recompile the whole project again, you can use Project->clean.

If you copy some files from the file system to the project folder in Eclipse, Eclipse is not automatically loaded. If you want to edit these files in the Eclipse environment, right-click->refresh on the project.

Eight. Pakage explore is the most commonly used view, what are the tips for using it?

1.pakage explore in the project too much, the old influence of my editing other projects, what should I do? The most convenient way is to right-click Delete, the next page prompts you to delete the project or even project content files and folders deleted together, the default is to delete only the project.         Be assured of the bold delete, the file system content is not deleted, and so you want to use the project again, you can import again. Another way is to right-click->close Project, after the operation, the project icon into a storage box. When you want to use the project again, you can right-click->open Project.

2. The project is too much content, some content I do not need to edit, need to hide, what should I do?         Click the inverted triangle symbol in the upper part of Pakage Explore click the Filters option in the drop-down menu, then tick the content you do not want to display, or enter the suffix of the file type you do not want to display in the text box, for example: *.jar.         3. My pakage explore shows how the package structure is different from others? Pakage Explore provides two different views of the package structure, namely flat and hierarchical, you can click the inverted triangle symbol in the upper part of Pakage explore, then click Pakage in the drop-down menu. Presentation to switch.

Nine. How do I import an export in eclipse? 1. I have an Eclipse project, how do I get it into the eclipse development environment?

Right-click on the Pakage explore blank, import->general->existing projects into workspace, then select the path to your Eclipse project and import it.         2. I want to compile some Java files and make them into jar packages, what should I do?         In the Pakage explore select the Java file you want to compile, and then right-click, Export->java->jar file, the next few pages according to your specific requirements for the selection of options, until the completion, in general, the default option is OK. 3. The classes and methods in my Java files are commented in detail, and I want to generate the API Help documentation, what should I do?

Select your Java file in Pakage explore, then right-click, Export->java->javadoc, the next page according to your needs to choose the option, the general default is OK.         But to export Javadoc premise is that your comments need to follow the rules of Javadoc to write, the rules are actually very simple, interested to see the information in this area, online is more.         There is an Eclipse project on 4.cvs, how do I import it into eclipse? In Pakage explore blank out right click, new->project->cvs->projects from Cvs->create a new repository location, In the next page, fill in the CVS server information and user name password, and then proceed to the next step.

10. Be adept at using Eclipse's auto-generated code and code formatting capabilities

Open a Java file, right-click in the blanks, or click the Source menu item in the menu bar to see that eclipse provides a lot of code generation and formatting features->source.

The most common is to generate Pojo getter and setter, right-->source->generate getters and Setters, select the field you want to generate getter or setter, ha, generated, is not very convenient?

11. How to run a Java code quickly? With Scrapbook Sometimes we want to temporarily write a section of Java code to run, such as unclear current JVM system variables, should be used System.out.println (         System.getproperties ()); You can create a new scrapbook in Eclipse to run this line of code without having to write a class serious. The steps are as follows: New (CTRL + N)--enter "Scrap", select Scrapbook page, then generate a *.jpage, enter the code above, select, click the "Execute Selected Code" button on the toolbar to Run out.

12. Click on a method, the results jump to the interface, how to easily find the specific implementation method when the cursor is on the method, with Ctrl+t, you can display the implementation class of this method. Just choose.

The above summarizes 12 common eclipse techniques, hoping to help you.

Article Source: http://blog.csdn.net/ljfbest/article/details/7465003

"Reprint" Eclipse shortcut key Daquan

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.