4

Can I somehow make Eclipse autocomplete arguments in a method I am implementing?

Let's say I have

class A {
  void foo(const string& some_long_descriptive_name);
};

in the header. Now in the body I start type void A::foo( and I here I would like to just hit some button and get my argument(s) automatically filled in. Is that possible?

gruszczy
  • 40,948
  • 31
  • 128
  • 181
  • Seem to be already asked here... http://stackoverflow.com/questions/6912169/eclipse-enable-autocomplete-content-assist Did you try the solution proposed? – Antonio Jul 20 '13 at 19:57
  • Nope, I know how to autocomplete symbols in general. I can't autocomplete method arguments when implementing it. – gruszczy Jul 20 '13 at 20:08
  • Ok, sorry, now I undestand your question: you want to have an autocompletion when you are defining the function after the declaration... Seems pretty specific, not something you'll so often to require an autocompletion. Yet, it could be useful. – Antonio Jul 20 '13 at 20:17
  • I have to type some stuff twice, feels like a thing a computer could do the second time. It has all the information at hand. – gruszczy Jul 20 '13 at 20:52
  • Well, I usually do copy and paste, and I usually do some mistakes because of that :) (but usually just compile time errors, not runtime ones) – Antonio Jul 20 '13 at 20:55
  • Eclipse does even pop up a small window showing the parameter types and names from the declaration when you request autocomplete inside the parentheses or pause immediately after typing `(`. So it has the information. There just doesn't seem to be a nice way to have it dump that information into the source. – aschepler Nov 08 '18 at 17:14

0 Answers0