Pierre Rymiortz
Pierre Rymiortz

Reputation: 1127

Is there a shortcut to override methods in an Android Framework class in Eclipse?

Currently when overriding a method in e.g. an Activity in an Android Eclipse project I do:

Source > Override/Implement Methods > scroll list, check box, click OK.

Is there a shortcut for this with fewer steps?

Upvotes: 6

Views: 4658

Answers (4)

oldergod
oldergod

Reputation: 15010

You can also start to type the method name and auto completion (Ctrl-Space) will also give you function you can override.

Upvotes: 1

morodomi
morodomi

Reputation: 471

In my case,

  1. Preferences > Java > Editor > Content Assist > Uncheck "Enable auto activation"
  2. Preferences > General > Content Assist > Binding to Ctrl + Space (Set key bind) or Option + Space
  3. type "on", then Ctrl + Space

Step 3 will shows methods you can override.

Disable auto activation will increase the performance of eclipse and bind key to content assist is much faster and useful.

Upvotes: 0

Tamás Cseh
Tamás Cseh

Reputation: 3090

You have to use Alt+Shift+S, V

Upvotes: 2

Dave Newton
Dave Newton

Reputation: 160191

alt-shift-s v

All the keyboard shortcuts are discoverable in the configuration.

Upvotes: 8

Related Questions