Home Database Mysql Tutorial 玩转Eclipse2

玩转Eclipse2

Jun 07, 2016 pm 03:43 PM
but Commonly used Have fun

这里只解说一部分常用但是大家又不知道的快捷键;详细快捷键见本人博客 : Eclipse 快捷键大全 。好了闲话少说,马上步入正题。 http://blog.csdn.net/tianyazaiheruan 1. alt/ 是内容辅助键; 当想写代码:System.out.println();时可以先写出syso然后快捷键

 这里只解说一部分常用但是大家又不知道的快捷键;详细快捷键见本人博客Eclipse快捷键大全。好了闲话少说,马上步入正题。http://blog.csdn.net/tianyazaiheruan

 1. alt+/是内容辅助键; 当想写代码:System.out.println();时可以先写出syso然后快捷键alt+/(?);这个快捷很常用,而且不用大写,某些类名不会拼,就连变量不会起名都可以辅助你,而且用这个快捷键输出的类会自动倒包。

这里重点说一下这个快捷键的这么使用的原因,可以参考window->preferences->java->Templates(模版)里的;快捷键怎么设置的:preferences(首选项)->General(常规)->Keys(键)然后可以自己手动设置,但是要记住千万不要设置热键冲突。

2.  ctrl+shift+o:倒包;可以快速导入多个类,而且是用什么倒什么,这样节省内存。

3.ctrl+d:删除;光标在当前行删除当前行,全部选中则全删,不过全删这个没什么大用处,你想想你都用鼠标选了是不是可以直接键盘delete啊!

 4.ctrl+1:光标放在编译中出现的红色波浪形上提示错误信息和建议。

5.凡是带绿色边框的代码都可以tab键切进去编写。

http://blog.csdn.net/tianyazaiheruan

6.alt+shift+s:调出source界面;alt+shift+R:重构;(就是给变量或方法重命名)

7.想要把某些代码封装成方法,ok,简单!选中这部分代码右键—Refactor(重构)--Change Menthod Singnature(抽取方法)就哦了,还且还带主方法调用该方法的代码。这个路径下的还能从父类抽取方法(没有父类给自动给建一个);从接口抽取方法

8.加注释,/**然后回车,直接出注释代码,而且带某些参数注解

9.  Ctrl+alt+上下键:向上下复制代码;alt+上下键,向上下移动代码

10.其他常见但用的不是很多的一些快捷键

 Ctrl+Shift+F4:关闭所有打开的Editer还可以右键一个代码编辑窗口,close all(全关闭)Ctrl+W: 关闭当前Editer

Ctrl+Shift+X :把当前选中的文本全部变为小写

Ctrl+Shift+Y :把当前选中的文本全部变为小写

Ctrl+Shift+F :格式化当前代码

http://blog.csdn.net/tianyazaiheruan

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The first choice for CS players: recommended computer configuration The first choice for CS players: recommended computer configuration Jan 02, 2024 pm 04:26 PM

1. Processor When choosing a computer configuration, the processor is one of the most important components. For playing games like CS, the performance of the processor directly affects the smoothness and response speed of the game. It is recommended to choose Intel Core i5 or i7 series processors because they have powerful multi-core processing capabilities and high frequencies, and can easily cope with the high requirements of CS. 2. Graphics card Graphics card is one of the important factors in game performance. For shooting games such as CS, the performance of the graphics card directly affects the clarity and smoothness of the game screen. It is recommended to choose NVIDIA GeForce GTX series or AMD Radeon RX series graphics cards. They have excellent graphics processing capabilities and high frame rate output, and can provide a better gaming experience. 3. Memory power

Use your mobile phone to type 'Black Myth: Wukong '? I can play it in actual testing, but I don't recommend it. Use your mobile phone to type 'Black Myth: Wukong '? I can play it in actual testing, but I don't recommend it. Aug 23, 2024 pm 09:44 PM

Since the launch of "Black Myth: Wukong", its popularity has not dropped, and there are many hot searches every day on all major platforms. Unfortunately, for mobile players, the excitement only belongs to PC players, console players and handheld players. How can that work? We who make mobile phones cannot lose. First of all, we rule out the idea of ​​running Black Monkey on mobile phones. As a large-scale 3A game with a volume of more than 100 GB, the performance requirements are very high, and a large number of rendering technologies are developed for PC hardware. If it is translated and run on mobile phone hardware , let alone how good the frame rate and picture are, you may not be able to enter the game. In this case, we can only look at the popular cloud games. The two giants Tencent and NetEase have launched corresponding activities for "Black Myth". Relying on the advantage that its WeGame platform is also a sales platform, Tencent

Learn the canvas framework and explain the commonly used canvas framework in detail Learn the canvas framework and explain the commonly used canvas framework in detail Jan 17, 2024 am 11:03 AM

Explore the Canvas framework: To understand what are the commonly used Canvas frameworks, specific code examples are required. Introduction: Canvas is a drawing API provided in HTML5, through which we can achieve rich graphics and animation effects. In order to improve the efficiency and convenience of drawing, many developers have developed different Canvas frameworks. This article will introduce some commonly used Canvas frameworks and provide specific code examples to help readers gain a deeper understanding of how to use these frameworks. 1. EaselJS framework Ea

Spring Annotation Revealed: Analysis of Common Annotations Spring Annotation Revealed: Analysis of Common Annotations Dec 30, 2023 am 11:28 AM

Spring is an open source framework that provides many annotations to simplify and enhance Java development. This article will explain commonly used Spring annotations in detail and provide specific code examples. @Autowired: Autowired @Autowired annotation can be used to automatically wire beans in the Spring container. When we use the @Autowired annotation where dependencies are required, Spring will find matching beans in the container and automatically inject them. The sample code is as follows: @Auto

15 commonly used currency circle escape index technology analysis 15 commonly used currency circle escape index technology analysis Mar 03, 2025 pm 05:48 PM

In-depth analysis of the top 15 Bitcoin Escape Index: Market Outlook for 2025 This article deeply analyzes fifteen commonly used Bitcoin Escape Index, among which the Bitcoin Rhodl ratio, USDT current wealth management and altcoin seasonal index have reached the Escape Index in 2024, attracting market attention. How should investors deal with potential risks? Let us interpret these indicators one by one and explore reasonable response strategies. 1. Detailed explanation of key indicators AHR999 coin hoarding indicator: Created by ahr999, assisting Bitcoin fixed investment strategy. The current value is 1.21, which is in the wait-and-see range, so it is recommended to be cautious. Link to AHR999 Escape Top Indicator: A supplement to AHR999 Coin Hoarding Indicator, used to identify the top of the market. The current value is 2.48, this week

Introduction to common data types in Oracle database Introduction to common data types in Oracle database Mar 08, 2024 am 09:45 AM

Oracle database is a commonly used relational database management system that supports multiple data types to meet different needs. When using Oracle database, it is very important to understand the data types of the database. This article will introduce the commonly used data types in Oracle database, with specific code examples. 1. Numeric data type NUMBERNUMBER is the most commonly used numeric data type in Oracle database, used to store integers or floating point numbers. The NUMBER data type can specify precision

What are the commonly used data structures in Java? An in-depth analysis of Java data structures What are the commonly used data structures in Java? An in-depth analysis of Java data structures Jan 09, 2024 pm 11:29 PM

Java is a widely used programming language, and data structures are an integral part of the development process. Data structures help organize and manage data and improve program execution efficiency. In Java, commonly used data structures include arrays, linked lists, stacks, queues, trees, graphs, etc. This article will provide an in-depth analysis of these commonly used Java data structures and provide specific code examples. 1. Array Array is a linear data structure that can store elements of the same type. In Java, you can declare using

What are the commonly used encryption algorithms in PHP? What are the commonly used encryption algorithms in PHP? May 12, 2023 pm 06:51 PM

With the development of the Internet, data security has become a serious issue that we must pay attention to in our daily work. Encryption becomes especially important when it comes to sensitive personal information or business data. In PHP development, some encryption algorithms are widely used. Let's take a look at the encryption algorithms commonly used in PHP. 1. Base64 encoding Base64 encoding is often used to transmit binary data in web pages or emails, because web pages or emails can only transmit string type data and cannot directly transmit binary data. Base64 is a solution

See all articles