Eclipse Key Shortcuts for Greater Developers Productivity--reference
Posted by Ajitesh Kumar / In Java / June 6, 2014
http://vitalflux.com/eclipse-key-shortcuts-greater-developers-productivity/
The article presents Eclipse Key Shortcuts (for Windows) which could be used to perform most common coding tasks in a much efficient/faster and effective manner thereby enhancing overall productivity of the Java developers. Please note there are lot more key shortcuts which could be accessed from Eclipse IDE Windows/Preferences/Keys. However, I have made a mention of only those shortcuts which I found very useful in coding faster. If I missed on any shortcuts keys that you feel would be useful to be added in the list below, please give a shout.
There were some useful feedbacks on reddit postfrom where I took some commands and added to the list below. Thanks for the shout.
Java developers’ productivity when working with Eclipse IDE could be increased to a great extent if he/she should be work in a faster and effective manner in following broad areas of work:
- Working with Classes/Interfaces
- Working with Tabs
- Quick reference/help documentation
- Common text editor commands
Following describes specifics on all of the above areas along with the Shortcuts Keys commands.
Working with Java Classes/Interfaces (Resources)
Many a times, we need to following while coding:
- Open any specific Java classes/interface
- Open structure of specific Java classes/interface and navigate through member methods and variables
- Create getter/setter methods
- Work with errors and apply quick fixes
- Go to declaration of any specific classes/interface from within the code
- Search the Java classes/interfaces across the packages for specific texts etc.
Following are the commands:
- Helpful commands for coding Java classes/interfaces & resources files
- CTRL + Shift + R: Open a dialog box where one could write initials of Java classes/interfaces and other resource files such as XML etc and, the list would appear showing all the matches. One could also do quick search using * and ?.
- F3: Open classes/interfaces decleration
- CTRL + F3: Show the structure of the selected element including methods and member variables. It helps to quickly navigate the methods or variables.
- CTRL + Shift + Down: Go to Next Member. The same could be achieved using CTRL + F3 and using down arrow.
- CTRL + Shift + Up: Go to Previous Member. The same could be achieved using CTRL + F3 and using up arrow.
- F4: Open a type hierarchy on the selected element. Shows member variables and methods of the selected element.
- CTRL + Shift + F: Format the block of code including class and its methods.
- CTRL + D: Delete selected line(s)
- ALT + Shift + R: Rename the classes. Useful for code refactoring.
- CTRL + 7: Comment the select block of code. Pretty useful.
- ALT + Shift + S then H: Generate equals and hashcode method.
- Helpful commands for handling errors
- CTRL + .: Go to next error
- CTRL + ,: Go to previous error
- CTRL + 1: Show quick fixes
- Helpful command for getter/setter methods
- CTRL + 1: As you define the member variable, you could place the cursor on the variable and press CTRL + 1. It would show up options where you could select “Create getter and setter for…”.
- ALT + Shift + S then R: This is formally suggested by Eclipse for creating getter and setter methods.
- Helpful commands for search
- CTRL + H: Open Search Dialog which could be used to search Java classes/interfaces consisting of specific text related with type, methods, member variables, package etc.
Working with Tabs
Often, we need to do following with the tabs:
- Move between the tabs consisting of source code for different Java classes
- Close the tabs, one at a time or all of them at once
- Maximize/minimize the tab for ease of development
Following are the shortcut keys which helps to achieve above objectives faster than the mouse:
- CTRL + F6: Next Tab/Editor
- CTRL + M: Maximize Activity Window
- CTRL + W: Close Tab/Window
- CTRL + Shift + W: Close all Tabs/Windows
Quick Reference/Help
Following command would help in opening associated JavaDoc right in the Eclipse IDE. All you need to do is place your cursor on the element and press the following keys:
- Shift + F2: Open Attached Javadoc
Common Text Editor Commands
Following are some commonly used text commands which could speed up coding, in general.
Add New Lines
- CTRL + Shift + Enter Insert line above Current Line
- Shift + Enter Insert Line below Current Line
Collapse/Expand All Methods
- CTRL + Shift + Numpad_Divide Collapse all methods
- CTRL + Shift + Numpad_Multiply Expand all methods
Eclipse Key Shortcuts for Greater Developers Productivity--reference的更多相关文章
- eclipse ide for java ee developers 开发环境搭建(j2ee)
转载自:http://www.iteye.com/topic/982182 真的是一片很不错的文章啊! 使用eclipse真的有年头了,相信java程序员没有不知道它的,最近在给团队中新来的应届生做指 ...
- 怎么样Eclipse IDE for C/C++ Developers正确编译GTK规划?(解决)
<span style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 25.99 ...
- eclipse ide for java ee developers 开发环境搭建(J2EE) 【转载】
使用eclipse真的有年头了,相信java程序员没有不知道它的,最近在给团队中新来的应届生做指导,专门讲解了一下Eclipse开发环境的搭建过程, 一是帮助他们尽快的熟悉IDE的使用,二也是保证团队 ...
- Eclipse IDE for Java EE Developers 与 Eclipse Classic(Eclipse Standard)区别
Eclipse下载官网:http://www.eclipse.org/downloads/ 版本: 1.Eclipse classic(Eclipse Standard):Eclipse的标准版; 2 ...
- Eclipse IDE for C/C++ Developers安装配置详解
Eclipse IDE for C/C++ Developers安装配置详解(转) 转自:http://hi.baidu.com/ltb6w/item/986532efd712460f570f1ddc ...
- ubuntu下安装eclipse IDE for C/C++ developers
序 linux的GUI和windos比起来实在逊色,虽然它的终端模式(命令行模式)非常强大.linux发行版ubuntu的GUI相对其他版本要华丽一些,所以最近由redhat转向ubuntu进行li ...
- Ubuntu下在Eclipse IDE for C/C++ Developers中怎样执行C语言的GTK程序?(已解决)
(已解决.详见Ubuntu 12.04下在Eclipse IDE for C/C++ Developers中执行C语言的GTK程序) 按"Ubuntu下GTK的安装.编译和測试"( ...
- Linux下安装JRE和Eclipse IDE for C/C++ Developers
Linux32位,下载eclipse-cpp-luna-R-linux-gtk.tar.gz和jre-8u11-linux-i586.rpm 放到家文件夹中. http://www.eclipse. ...
- Eclipse IDE for java EE Developers下载和安装
1.登录 http://www.eclipse.org/home/index.php ,下载Eclipse IDE for java EE Developers 2.解压缩压缩包到任意路径(推荐:G: ...
随机推荐
- uva 11992 - Fast Matrix Operations
简单的线段树的题: 有两种方法写这个题,目前用的熟是这种慢点的: 不过不知道怎么老是T: 感觉网上A过的人的时间度都好小,但他们都是用数组实现的 难道是指针比数组慢? 好吧,以后多用数组写写吧! 超时 ...
- 如何取消Linux下,vi中显示的^M符号
http://www.cnblogs.com/dkblog/archive/2012/02/03/2337187.html dos2unix file_name bash: ./configure: ...
- 如何备份MySql的数据库
如何备份MySql的数据库 应该说一般的数据库都有BackUp的需求, MySql备份数据库的方式很简单, 但是在网上说得云里雾里, 也应该是我对MySql数据库不熟悉. 目标(Target) : ...
- 《鸟哥的Linux私房菜》读书笔记二
1.Unix的前身是由贝尔实验室(Bell lab.)的Ken Thompson利用汇编语言写成的, 后来在1971-1973年间由Dennis Ritchie以C程序语言进行改写,才称为Unix. ...
- linux svn服务器搭建、客户端操作、备份与恢复
Subversion(SVN)是一个开源的版本控制系統,管理着随时间改变的数据.这些数据放置在一个中央资料档案库中,这个档案库很像一个普通的文件服务器,它会记住每一次文件的变动,这样就可以把档案恢复到 ...
- MySQL源码 解析器
sql请求发送到server端,需要经过解析器生成内部的数据结构对象,以方便进行优化和生成执行计划.解析器主要做了两件事情,词法分析和语法分析. 词法和语法分析:mysql使用lex词法分析器,yac ...
- javascript循环
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- SharePoint2010沙盒解决方案基础开发——关于TreeView树形控件读取列表数据(树形导航)的webpart开发及问题
转:http://blog.csdn.net/miragesky2049/article/details/7204882 SharePoint2010沙盒解决方案基础开发--关于TreeView树形控 ...
- 【Android 复习】:Android之ViewFlipper(一)
屏幕切换指的是在同一个Activity内屏幕见的切换,最长见的情况就是在一个FrameLayout内有多个页面,比如一个系统设置页面:一个个性化设置页面. 通过查看Android API文档可以发现, ...
- Java---俄罗斯方块小游戏
去年就已经学了这个技术了,一直没去写,现在抽个时间写了个俄罗斯方块游戏. 只有简单的新游戏,暂停,继续,积分功能.简单的实现了俄罗斯的经典功能. 不介绍了,有兴趣的自己运行一下,后面贴出了图片. 代码 ...