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,布布扣,bubuko.com

Eclipse Key Shortcuts for Greater Developers
Productivity--reference

时间: 2024-12-15 06:58:35

Eclipse Key Shortcuts for Greater Developers Productivity--reference的相关文章

Ubuntu 12.04下在Eclipse IDE for C/C++ Developers中运行C语言的GTK程序

哈哈哈--终于搞定了GTK程序的编译与运行,纠结了近一个月的问题终于得以解决,痛快!近一个月来,不断百度.发博文.百度知道提问.csdn提问--经常发私信.评论博文麻烦大牛,比如sunny2038.轻飘风扬.Sun1956--在此对所有帮助我的人表示感谢! 特别感谢csdn的sunny2038,他的博文<Windows和Ubuntu11.10在Eclipse中配置C和GTK>和热心回复给了我很大的帮助! Neo E. Cai的博文<Ubuntu下GTK的安装.编译和测试>对我具有非

求救:如何在Eclipse IDE for C/C++ Developers中正确编译GTK程序?

出现错误信息如下,请问大牛该如何解决? 00:52:56 **** Incremental Build of configuration Debug for project Again **** make all  Building file: ../why.c Invoking: GCC C Compiler gcc "../why.c" -I/usr/include/glib-2.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-

eclipse ide for java ee developers 开发环境搭建详解图文(j2ee)

使用eclipse真的有年头了,相信java程序员没有不知道它的,最近在给团队中新来的应届生做指导,专门讲解了一下Eclipse开发环境的搭建过程,一是帮助他们尽快的熟悉IDE的使用,二也是保证团队开发环境的一致性(顺便说一下,这点在敏捷开发团队中尤为重要,方便知识传播,提升团队快速响应能力). 培训的过程中想起了自己当年初涉java时的情景,不免感慨万千啊.正所谓"工欲善其事必先利其器",话不多说,赶紧搭吧. 一.jdk安装与配置 jdk7于3月份刚刚发布,目前eclipse的最新版

Ubuntu下使用Eclipse IDE for C/C++ Developers交叉编译和调试

1.下载JDk和Eclipse 首先我们下载Eclipse IDE for C/C++ Developers, 地址 http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/2/eclipse-cpp-mars-2-linux-gtk-x86_64.tar.gz 下载完后,打开进入eclipse目录打开eclipse,提示"Version 1.5.0of the JVM i

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.org/downloads/?osType=linux&release=undefined,    Eclipse IDE for C/C++ Developers http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloa

Ubuntu下在Eclipse IDE for C/C++ Developers中怎样执行C语言的GTK程序?(已解决)

(已解决.详见Ubuntu 12.04下在Eclipse IDE for C/C++ Developers中执行C语言的GTK程序) 按"Ubuntu下GTK的安装.编译和測试"(http://www.cnblogs.com/niocai/archive/2011/07/15/2107472.html)所说步骤,最终安装成功了GTK,非常开心,以为近一个月的困扰要攻克了.但在Eclipse IDE for C/C++ Developes中一測试.出现找不到gtk/gtk.h头文件的错误

最新版本Maven + Eclipse IDE for Java EE Developers (Kepler)无法成功部署

最终改用Maven 1.10及以下版本,问题解决.(可能与Maven版本无关) 遇到问题之一: 无法连接maven repository:Could not transfer artifact XXXXX from/to central (http://repo.maven.apache.org/maven2)解决方法:在Maven安装目录,Conf\Setting.xml中设置正确的代理.格式示例: <proxy> <id>optional</id> <acti

eclipse key

让我们按照使用频率来看看我最爱用的一些热键组合.(注:以下内容在Eclipse3.02及一上版本通过测试) 1. Control-Shift-T: 打开类型(Open type).如果你不是有意磨洋工,还是忘记通过源码树(source tree)打开的方式吧.用eclipse很容易打开接口的实现类的,按ctrl+t会列出接口的实现类列表 2. Control-Shift-R: 打开资源(不只是用来寻找Java文件).小提示:利用Navigator视图的黄色双向箭头按钮让你的编辑窗口和导航器相关联

VS code key shortcuts for windows

mac上的快捷键,尽量是选择像我用vs studio上靠近. ctrl+K+S: 显示快捷键列 ctrl+shift+p: 系统配置命令行 ctrl+p:项目中文件列表,选择文件 Alt+M:当前文件的函数列表 (Go to symbol in File) Alt+shift+O:显示所有符号(Go to all symbols) cmd+shift+e:项目结构浏览图 Alt+G:目录中搜索 Ctrl+f:文件中搜索 Alt+1: goto definition ctrl+1: go to r