Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHPDoc autocompletion
PHPDoc autocompletion [message #88250] Mon, 05 January 2009 14:59 Go to next message
Flo Schuessel is currently offline Flo SchuesselFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

can one change the behaviour of PHPDoc autocompletion?

The old 1.x behaviour suited much more my and the needs of some
colleagues. What I exactly mean is that it's autocompleted like this:

/**
* Insert desc...
* @param $myVar
* @return unknown_type
*/
public function myFunc($myVar){}

which was in 1.x:

/**
* Insert desc...
* @param unknown_type $myVar
*/
public function myFunc($myVar){}

It was much more comfortable that "unknown_type" was placed before the var
and @return only was injected if there was a return-statement present.

Further on sometimes (when overwriting methods or implementing abstract
ones, don't know exactly) there is a @see with and in brackets
(no-PHP-Doc) and no other autocompletion.

Thanks,
flo
Re: PHPDoc autocompletion [message #88265 is a reply to message #88250] Mon, 05 January 2009 15:06 Go to previous messageGo to next message
Flo Schuessel is currently offline Flo SchuesselFriend
Messages: 3
Registered: July 2009
Junior Member
Okok...I found something under PHP->Code Style->Code Templates.
Is there anywhere a description about the variables you can place there?
E.g. what ${tags} is replaced with or what else I can use.

Thanks!
Re: PHPDoc autocompletion [message #88280 is a reply to message #88265] Mon, 05 January 2009 15:17 Go to previous messageGo to next message
Jorrit Schippers is currently offline Jorrit SchippersFriend
Messages: 26
Registered: July 2009
Junior Member
Flo Schuessel wrote:
> Okok...I found something under PHP->Code Style->Code Templates.
> Is there anywhere a description about the variables you can place there?
> E.g. what ${tags} is replaced with or what else I can use.
>
> Thanks!
>


They should be in the Insert Variable dialog, but I see that they are
not. You could create a bug for this.

--
Jorrit
Re: PHPDoc autocompletion [message #88607 is a reply to message #88280] Wed, 07 January 2009 14:40 Go to previous messageGo to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
Hi -

Is there any possibility someone could post a list of the available
variables in the meantime?

Thanks
Tim
Re: PHPDoc autocompletion [message #89405 is a reply to message #88607] Sat, 10 January 2009 06:34 Go to previous messageGo to next message
Paul Oehler is currently offline Paul OehlerFriend
Messages: 5
Registered: July 2009
Junior Member
Did a bug get created for this? The default phpdoc autocomplete for
functions is not as useful in PDT 2 as it was in PDT 1 as is.

I also noticed it does not auto-complete the type for method parameters,
if type-hinting is used now. PDT 1 did this successfully.

Paul
Re: PHPDoc autocompletion [message #92270 is a reply to message #88607] Thu, 29 January 2009 16:15 Go to previous message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
Bump!

Seriously, a list of the parameters would be useful until the next
release...

Thanks
Tim
Previous Topic:AutoComplete for "core" functions not working
Next Topic:Debug: Using Step Filteting
Goto Forum:
  


Current Time: Thu Apr 25 23:14:45 GMT 2024

Powered by FUDForum. Page generated in 0.02635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top