(转)Eclipse Shortcuts
原文地址: http://javapapers.com/core-java/eclipse-shortcuts/
Editors are an integral part of a programmer’s life. If you have good proficiency in using an editor thats a great advantage. It comes very handy to debug. Traditional notepad and SOPs (System.out.println) are the way we start learning a language but that is not sufficient, so beginners start using an IDE and most importantly know the shortcuts.
For java developers there is a huge list and some popular areEclipse, Netbeans, IntelliJ Idea. I use Eclipse as my IDE and vim as a light weight editor.
This article is for those who use or intend to use Eclipse as IDE. Keyboard shortcuts are very important for comfortable and quick editing. I have abridged the following list of eclipse shortcuts from my own experience and literature.
There is a huge list of eclipse shortcuts available but I have listed only the most essential ones that you may need daily. Download this list as a pdf formatted for single page.
File Navigation – Eclipse Shortcuts
- CTRL SHIFT R – Open a resource. You need not know the path and just part of the file name is enough.
- CTRL E – Open a file (editor) from within the list of all open files.
- CTRL PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.
- ALT <- or ALT -> – Go to previous or next edit positions from editor history list.
Java Editing – Eclipse Shortcuts
- CTRL SPACE – Type assist
- CTRL SHIFT F – Format code.
- CTRL O – List all methods of the class and again CTRL O lists including inherited methods.
- CTRL SHIFT O – Organize imports.
- CTRL SHIFT U – Find reference in file.
- CTRL / – Comment a line.
- F3 – Go to the declaration of the variable.
- F4 – Show type hierarchy of on a class.
- CTRL T – Show inheritance tree of current token.
- SHIFT F2 – Show Javadoc for current element.
- ALT SHIFT Z – Enclose block in try-catch
General Editing – Eclipse Shortcuts
- F12 – Focus on current editor.
- CTRL L – Go to line number.
- CTRL D – Delete a line.
- CTRL <- or -> – Move one element left or right.
- CTRL M – Maximize editor.
- CTRL SHIFT P – Go to the matching parenthesis。
Debug, Run – Eclipse Shortcuts
- CTRL . or , – Navigate to next or previous error.
- F5 – Step into.
- F6 – Step over.
- F8 – Resume
- CTRL Q – Inspect.
- CTRL F11 – Run last run program.
- CTRL 1 – Quick fix code.
Search – Eclipse Shortcuts
- CTRL SHIFT G – Search for current cursor positioned word reference in workspace
- CTRL H – Java search in workspace.
Download eclipse shortcuts list as a single page pdf. You can stick it for quick reference in your workstation.
(转)Eclipse Shortcuts的更多相关文章
- Eclipse shortcuts
Editor Shortcut Description Alt + / Content assist. A great help for our coding. Ctrl + Shift + F Fo ...
- eclipse 断点使用深入技能
原文:http://blog.jobbole.com/26435/ 摘要:调试不仅可以查找到应用程序缺陷所在,还可以解决缺陷.对于Java程序员来说,他们不仅要学会如何在Eclipse里面开发像样的程 ...
- Top 10 Java Debugging Tips with Eclipse
In this tutorial we will see about debugging java applications using Eclipse. Debugging helps us to ...
- Eclipse调试的一些小技巧
不要使用System.out.println作为调试工具 启用所有组件的详细的日志记录级别 使用一个日志分析器来阅读日志 1.条件断点 想象一下我们平时如何添加断点,通常的做法是双击行号的左边.在de ...
- java Eclipse debug技巧
摘要:调试不仅可以查找到应用程序缺陷所在,还可以解决缺陷.对于Java程序员来说,他们不仅要学会如何在Eclipse里面开发像样的程序,更需要学会如何调试程序.本文介绍了Java程序员必知的10个调试 ...
- How to decompile class file in Java and Eclipse - Javap command example(转)
Ability to decompile a Java class file is quite helpful for any Java developer who wants to look int ...
- (转)程序员应该知道的10个eclipse调试技巧
调试不仅可以查找到应用程序缺陷所在,还可以解决缺陷.对于Java程序员来说,他们不仅要学会如何在Eclipse里面开发像样的程序,更需要学会如何调试程序.本文介绍了Java程序员必知的10个调试技巧, ...
- Sublime Text加上Eclipse
打造属于自己的前端开发神器 -- 给Sublime Text加上Eclipse的光环 将Sublime Text打造成如Eclipse一般的前端开发IDE 1. 快捷键移植篇 从Java开 ...
- Eclipse 经常使用快捷键
一.File 二.Edit Ctrl + 1 有益写错,让编辑器提醒改动 三.Refactor 抽取为全局变量 Refactor - Convert Local Variable to Field ...
随机推荐
- 滚动页面时DIV到达顶部时固定在顶部
本示例使用Javascript实现了滚动页面时,DIV到达顶部时固定在顶部.在IE下效果有点闪,效果网址:http://www.keleyi.com/keleyi/phtml/fixdiv.htm 下 ...
- Matrix Power Series(POJ 3233 构造新矩阵求解+ 快速矩阵幂)
题目大意:给定A,k,m(取模),求解S = A + A2 + A3 + … + Ak. 思路:此题为求解幂的和,一开始直接一个个乘,TLE.时间消耗在累加上.此处巧妙构造新矩阵 p= A 0 ...
- AngularJS 基础教程一:
一:了解AngularJS AngularJS是一款非常优秀的前端高级 JS 框架,由 Misko Hevery 等人创建 2009 年被 Google 收购,用于其多款产品 有一个全职的开发团队继续 ...
- ASP.NET学习笔记——ASP.NET应用程序
0 剖析ASP.NET应用程序 用户运行ASP.NET应用程序,不是直接运行,而是使用浏览器(比如IE)通过HTTP请求一个特定的URL(如http://www.mysite.com/mypage.a ...
- 开心菜鸟系列----变量的解读(javascript入门篇)
console.info( console.info(window['weiwu']) console.info(window. ...
- Qemu对x86静态内存布局的模拟
快乐虾 http://blog.csdn.net/lights_joy/ lights@hb165.com 本文适用于 QEMU-0.10.5 VS2008 欢迎转载,但请保留作者信息 在PC机中,由 ...
- Linux中C/C++头文件一览
1.Linux中一些头文件的作用: #include <assert.h> //ANSI C.提供断言,assert(表达式) #include <glib.h> ...
- MultipartEntityBuilder.addTextBody 中文乱码
// 使用addPart+ StringBody代替addTextBody,解决中文乱码 // builder.addTextBody(entry.getKey(), entry.getValue() ...
- MVC 增加统一异常处理机制
原文地址:http://www.cnblogs.com/leoo2sk/archive/2008/11/05/1326655.html 摘要 本文将对“MVC公告发布系统”的发布公告功能添加 ...
- PhpForm表单相关的超全局变量操作
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...