Friday, 12 July 2013

Eclipse Shortcuts

Shortcuts in Eclipse


  • Getting Resource- Shift+Ctrl+R


  • Getting line number- Ctrl+L


  • Import Packages- Shift+Ctrl+O

Instead of having to type the import lines, you could just write your code first in the editor and whenever you see red squiggly lines signaling that you need to import a specific class, all you have to do is press Ctrl + Shift + O and ALL the unknown types will be imported. No more going into the focus popup and pressing Import for each class


  • Control + I: Indent/  Alignment of code

Is your code looking like this at times?
eclipse keyboard shortcuts
Simply highlight the code portion that looks hard to read, press Ctrl + i to indent everything nicely.
keyboard shortcuts eclipse

  • System.out.println()- Sysout + Control + Space
  • Search Entire Workspace – Ctrl+H

  • RUN – Ctrl+F11
  • RENAME – Alt+ Shift+R
  • Delete Line – Ctrl+D
  • Adding Comments - Ctrl+/
Select the multiple lines and press Ctrl+/.All the selected lines will be commented



No comments:

Post a Comment