Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Need Tips on Autocompletion
Need Tips on Autocompletion [message #884023] Sat, 09 June 2012 23:18 Go to next message
Sergei G is currently offline Sergei GFriend
Messages: 5
Registered: June 2012
Junior Member
I have found that if global or class static variable is defined in outside file, then PDT does not know its type (that's expected from dynamic language).

However, it is highly inconvenient.

Are there any tips out there to structure code in such a way that PDT can discover variable type more easily and thus provide me with meaningful code completion instead of listing nothing.


Thanks
Re: Need Tips on Autocompletion [message #888170 is a reply to message #884023] Sun, 17 June 2012 20:01 Go to previous message
Sergei G is currently offline Sergei GFriend
Messages: 5
Registered: June 2012
Junior Member
Perhaps I should've asked that I don't know how to make code hints to work.
The short answer is one has to use PHP documentation comments like this:

# @var $db PDO

It works like a charm for database handle.
Previous Topic:Adding specifc source files to certain project, by code.
Next Topic:xdebug and breakpoints
Goto Forum:
  


Current Time: Thu Feb 02 22:09:00 GMT 2023

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

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

Back to the top