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

Summary of Common Shortcut Keys in Eclipse

2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces the "summary of common shortcut keys in Eclipse". In daily operation, I believe that many people have doubts about the summary of common shortcut keys in Eclipse. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "summary of common shortcut keys in Eclipse". Next, please follow the editor to study!

Edit shortcut [ALT+/] displays code hints, as well as code completion. [Ctrl+/] add comment [Ctrl+D] Delete the current line

Window shortcut [Ctrl+M] window maximization and restore

View and locate shortcut keys

[Ctrl+K], [Ctrl+Shift+K] quickly look up and down for the selected content, so you no longer need to click the find dialog box with the mouse. 2.. [Ctrl+J], [Ctrl+Shift+J] Incremental Search, a cool search shortcut.

[Ctrl+Shift+T] [Ctrl+Shift+R] [Ctrl+Shift+G] looks for references to classes, methods, and properties. This is a very useful shortcut. For example, to modify the code that references a method, you can use the [Ctrl+Shift+G] shortcut to quickly locate all locations that reference this method. [Ctrl+Shift+O] quickly generate import, when copying a program from the Internet, do not know how to import into the called class, try the [Ctrl+Shift+O] shortcut key, there will be a surprise. [Ctrl+Shift+F] formatting code, writing standard code is a compulsory course for every programmer. When you see a piece of code that is extremely unpleasant, press the [Ctrl+Shift+F] shortcut key to format the code. If no code is selected, the current file (Java file) is formatted by default. [ALT+Shift+W] find the path in the project where the current file is located, you can quickly locate the location of the browser view, and this shortcut is useful if you want to find the package where a file is located (especially in larger projects). [Ctrl+L] navigates to a line in the current editor, which is also valid for non-Java files.

[Alt+ ←], [Alt+ →] backward history and forward history are very useful when tracking code. Users may find several related places, but they may not remember clearly, and you can use these two shortcuts to locate the search order.

[F3] quickly locate a class, method, and property of the cursor location.

[F4] displays the inheritance relationship of the class and opens the class inheritance view.

Debug shortcut key

There are some keyboard shortcuts related to running and debugging in Eclipse.

[Ctrl+Shift+B]: sets or unsets a breakpoint on the current line.

[F11]: debug the last executed program.

[Ctrl+F11]: run the program executed for the last time.

[F5]: trace to the method, when the program executes to a method, you can press the [F5] key to trace to the method.

[F6]: step through the program.

[F7]: after executing the method, return to the last statement that called the method.

[F8]: continue execution until the next breakpoint or the end of the program.

[Ctrl + F2]: finish debugging.

Ctrl + R: skip to the line of the mouse.

View switch shortcut key

[Ctrl+F6]: switch to the next editor.

[Ctrl+Shift+F6]: switch to the previous editor.

[Ctrl+F7]: switch to the next view.

[Ctrl+Shift+F7]: switch to the previous view.

[Ctrl+F8]: switch to the next perspective.

[Ctrl+Shift+F8]: switch to the previous perspective.

[F12]: activate the editor.

[Ctrl+Q]: skip to the last edit; [Ctrl+Shift+Q]: when the file is not saved, you can see your changes through the dark red mark next to the line number. [Ctrl+W]: close the currently edited file; [Ctrl+Shift+W]: close all open files [Ctrl+E]: activate and locate a currently open file; [Ctrl+Shift+E]: same as Ctrl+E, but need to open a window. [Ctrl+R]: unknown (?) [Ctrl+Shift+R]: Open Resource (open resource files, such as java files, etc.) [Ctrl+T]: quickly view class hierarchical relationships [Ctrl+Shift+T]: Open Type (opens the specified type, such as class,interface, etc.) [Ctrl+Y]: contrary to [Ctrl+Z], canceling the previous undo operation [Ctrl+Shift+X/Y] changes all selected fonts to uppercase or 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]: indent the current row or select the row correctly. [Ctrl+Shift+I]: Inspect (Debug) [Ctrl+O]: quickly lists the Outline of the class. [Ctrl+Shift+O]: automatically add or delete import statements [Ctrl+P]: printer window [Ctrl+Shift+P]: at the beginning or end of matching parentheses [Ctrl+A]: select all. [Ctrl+Shift+A]: Open Plug-in Artifact [Ctrl+S]: save the current file. [Ctrl+Shift+S]: save all modified files [Ctrl+D]: delete a line. [Ctrl+Shift+D]: unknown (? ) [Ctrl+F]: find replacement. [Ctrl+Shift+F]: unknown (? ) [Ctrl+G]: look for a Declarations with the same name in workspace. [Ctrl+Shift+G]: find 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 (toward the beginning of the document) [Ctrl+K]: forward lookup. [Ctrl+Shift+K]: reverse lookup (to the beginning of the document) [Ctrl+L]: skip to the specified line. [Ctrl+Shift+L]: list the shortcuts supported by eclipse [Shift+Enter]: add a new line to the next line of the current edit line. [Ctrl+Shift+Enter]: add a new line [Ctrl+Z] to the previous line of the current edit line: undo the previous modification operation. [Ctrl+Shift+Z]: unknown (?) [Ctrl+X]: cut and select Chinese text (when unselected, the behavior is weird). [Ctrl+Shift+X]: as opposed to [Ctrl+Shift+Y], the selected Chinese text is capitalized. [Ctrl+C]: copy the selected text (it behaves strangely when unchecked). [Ctrl+Shift+C]: comment line (same as [Ctrl+/] [Ctrl+V]: paste [Ctrl+Shift+V]: unknown [Ctrl+B]: Build [Ctrl+Shift+B]: set breakpoint [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+/]: comments [Ctrl+Shift+/]: Toggle comments

Edit shortcuts: (important, 80% of the coding is spent here and jumping between files) ctrl + left / right: cursor skip a ctrl + up / down: scroll the screen Browse the code ctrl + Home/End: skip to the beginning or end of the file shift + left / right: select shift + up / down: select the text ctrl + shift + left / right: select ctrl + shift + up / down: jump up / down to alt + left / right: switch between the most recent browsing places. Alt + up / Down: move the cursor line up / down ctrl + alt + up / Down: copy a line and move (there is a conflict on Ubuntu). Ctrl + Q: skip to the last edit

At this point, the study on the "summary of common shortcut keys for Eclipse" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Internet Technology

Wechat

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

12
Report