Eclipse operation summary
1 Eclipse common shortcut keys
ctrl+Q: Jump to the last edit.
ctrl+F: Find and replace in the current file.
ctrl+T: View the inheritance relationship of a class.
#alt+left arrow: Return to the previous position of the cursor.
alt+right arrow: Go to the next position of the cursor.
alt+shift+s: Open the right-click menu. Note that after opening the right-click menu, each item also has shortcut keys. r generates getter/setter methods, v rewrites Or implement the method, o uses attributes to create the constructor, c inherits the parent class constructor class to create the constructor.
ctrl+shift+/: Add block comments.
ctrl+shift+\: Cancel block comments.
ctrl+/: Add or cancel line comments.
alt+shift+L: Extract local variables, such as extracting literal values, and create a reference variable for them.
ctrl+shift+r: Find local resources.
alt+shift+r: Rename.
ctrl+h: Find files containing specified content.
alt+shift+z: Add try---catch to the selected code.
alt+shift+z+3: Wrap the selected code into an if statement.
alt+up arrow/down arrow: Place the cursor on a line and move the line up or down.
ctrl+alt+up arrow/down arrow: Copy a line up or down.
alt+shift+M: Create a method for the selected code.
alt+shift+x, t: Run with JUnit.
alt+?: Display the content that can be inserted at the current position; output the selected content through System.out.println.
shift+enter: Insert a blank line below the current line.
alt+shift+A: Turn on or off multi-line editing mode.
A: Environment configuration for compiling and running the program (generally not changed)
Low compilation, high execution. Can.
High compile, low run. Can't.
It is recommended that the compiled and running versions be consistent.
window – Preferences – Java
Compilation environment: Compiler selects the highest version by default.
Running environment: Installed JREs will look for the JDK you installed by default. It is recommended to configure Java environment variables.
Question:
B: How to remove the default comments?
window – Preferences – Java – Code Style – Code Templates
Select the content you don’t want and edit it through Edit on the right.
Note: Please delete only the comment part, do not delete anything that is not a comment part.
C: Display and hide line numbers
Display: In the leftmost blank area of the code area, right-click – Show Line Numbers are enough.
Hide: Do the above action again.
D: Font size and color
window – Preferences – General – Appearance – Colors And Fonts – Basic – Text Font
window – Preferences – General – Appearance – Colors And Fonts – Debug – Console font
window – Preferences – General – Appearance – Colors And Fonts –Java modification – Java Edit Text Font
a: Font size and color of Java code area:
b: Console
c: Other files
E: The form is messed up, what should I do?
window – Reset Perspective
F: The console cannot be found, what should I do?
Window–Show View—Console
G: Cancel the hover prompt
window – Preferences – Java–Editor–Hovers. Uncheck Combined Hover on the right.
In this way, the floating box of the code will not appear automatically. If you want to see the prompt, hover the cursor over the code and press F2.
The above is the detailed content of Eclipse operation summary. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PyCharm is a very popular Python integrated development environment (IDE). It provides a wealth of functions and tools to make Python development more efficient and convenient. This article will introduce you to the basic operation methods of PyCharm and provide specific code examples to help readers quickly get started and become proficient in operating the tool. 1. Download and install PyCharm First, we need to go to the PyCharm official website (https://www.jetbrains.com/pyc

sudo (superuser execution) is a key command in Linux and Unix systems that allows ordinary users to run specific commands with root privileges. The function of sudo is mainly reflected in the following aspects: Providing permission control: sudo achieves strict control over system resources and sensitive operations by authorizing users to temporarily obtain superuser permissions. Ordinary users can only obtain temporary privileges through sudo when needed, and do not need to log in as superuser all the time. Improved security: By using sudo, you can avoid using the root account during routine operations. Using the root account for all operations may lead to unexpected system damage, as any mistaken or careless operation will have full permissions. and

How to customize shortcut key settings in Eclipse? As a developer, mastering shortcut keys is one of the keys to improving efficiency when coding in Eclipse. As a powerful integrated development environment, Eclipse not only provides many default shortcut keys, but also allows users to customize them according to their own preferences. This article will introduce how to customize shortcut key settings in Eclipse and give specific code examples. Open Eclipse First, open Eclipse and enter

LinuxDeploy operating steps and precautions LinuxDeploy is a powerful tool that can help users quickly deploy various Linux distributions on Android devices, allowing users to experience a complete Linux system on their mobile devices. This article will introduce the operating steps and precautions of LinuxDeploy in detail, and provide specific code examples to help readers better use this tool. Operation steps: Install LinuxDeploy: First, install

Presumably many users have several unused computers at home, and they have completely forgotten the power-on password because they have not been used for a long time, so they would like to know what to do if they forget the password? Then let’s take a look together. What to do if you forget to press F2 for win10 boot password? 1. Press the power button of the computer, and then press F2 when turning on the computer (different computer brands have different buttons to enter the BIOS). 2. In the bios interface, find the security option (the location may be different for different brands of computers). Usually in the settings menu at the top. 3. Then find the SupervisorPassword option and click it. 4. At this time, the user can see his password, and at the same time find the Enabled next to it and switch it to Dis.

With the popularity of smartphones, the screenshot function has become one of the essential skills for daily use of mobile phones. As one of Huawei's flagship mobile phones, Huawei Mate60Pro's screenshot function has naturally attracted much attention from users. Today, we will share the screenshot operation steps of Huawei Mate60Pro mobile phone, so that everyone can take screenshots more conveniently. First of all, Huawei Mate60Pro mobile phone provides a variety of screenshot methods, and you can choose the method that suits you according to your personal habits. The following is a detailed introduction to several commonly used interceptions:

Eclipse background color setting tutorial Eclipse is a very popular integrated development environment (IDE) used to develop applications in various programming languages. It has rich features and flexible configuration options that can be customized to suit individual needs. One of the common personalization requirements is to change the background color of Eclipse. This article will show you in detail how to set the background color of Eclipse. We'll provide concrete code examples to help you achieve this quickly. Step 1: Beat

1. Introduction to PDO PDO is an extension library of PHP, which provides an object-oriented way to operate the database. PDO supports a variety of databases, including Mysql, postgresql, oracle, SQLServer, etc. PDO enables developers to use a unified API to operate different databases, which allows developers to easily switch between different databases. 2. PDO connects to the database. To use PDO to connect to the database, you first need to create a PDO object. The constructor of the PDO object receives three parameters: database type, host name, database username and password. For example, the following code creates an object that connects to a mysql database: $dsn="mysq
