• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse shortcut hotkeys in typing.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone. I just want to learn some typing shortcuts that can be used while typing. All I knew ctrl + spacebar:

* type "sysout" then press ctrl + spacebar for System.out.println()
* type keywords then press ctrl + spacebar for suggested keywords etc.
* type a keyword then press ctrl + spacebar if you know that it needs to import a package. it will automatically imported.

I want to know other shortcuts like this to save some time typing. Thanks!
 
Ranch Hand
Posts: 119
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For sure you can see it when you are using the Eclipse IDE. There are shorcuts displayed for each menu in the IDE. You can also find it in Google, here is one example that I found when googling: Eclipse Shorcuts
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This discussion would fit better in our IDEs forum. Moving.
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ctrl+spacebar also activates the code templates. I don't use Eclipse myself, but Google says you can view and modify them in Window->Preferences->Java->Editor->Templates.
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ctrl+Shift+t
List of classes available from open projects

Ctrl+Shift+r
List of resources available from open projects
 
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ctrl + D
Deletes the current line. By far my most frequently used shortcut in Eclipse.

Ctrl + Up Arrow, Ctrl + Down Arrow
Moves the current line up or down. Also very frequently used.

Ctrl + /
Sets the current line to be a comment. This works as a toggle: if the current line is already commented, this shortcut un-comments it making it active code.

If you type all the upper-case letters in the name of a class, then press Ctrl + space, Eclipse will replace it with the name of the class. If you type only some of the upper case letters, such that more than one class can match, Eclipse will open a list and allow you to select the class you need.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic