Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Question about Code Assist
Question about Code Assist [message #78334] Thu, 14 August 2008 19:19 Go to next message
Shawn Clark is currently offline Shawn ClarkFriend
Messages: 70
Registered: July 2009
Member
Hi,

Previously with my Java development through Eclipse I would use Code
Assist to see the parameters needed for a function. Sometimes I would be
able to type out the function quicker than using the code assist to get
the function name as such my line of code would look something like:

my_function(<cursor here>)

Now with the Java editor I could press CTRL+SPACE and it would list the
parameters required / optional as part of the function (similar to using
code assist on "my_functio" without completing the function name).

In the PHP Editor I have noticed that if the function is complete and
you are in the same cursor position the Code Assist will return every
possible variable / editor template values as if it didn't understand
that we are already part of a function.

** Another Example **
I am typing in my function and I remember the first parameter but don't
remember the next parameters. Code would currently look like:

my_function(my_first_param, <cursor here>)

Again, with the Java Editor I could use CTRL+SPACE and it would list the
other required / optional parameters to complete the function.

In the PHP Editor it lists all the variables / editor templates as if it
isn't aware of the current function.
***

Is this a "bug" or is this more of a feature request to get into a later
build of PDT?

--
Shawn Clark
Re: Question about Code Assist [message #78348 is a reply to message #78334] Thu, 14 August 2008 21:16 Go to previous messageGo to next message
Ed Epstein is currently offline Ed EpsteinFriend
Messages: 7
Registered: July 2009
Junior Member
Shawn Clark wrote:

> Hi,

> Previously with my Java development through Eclipse I would use Code
> Assist to see the parameters needed for a function. Sometimes I would be
> able to type out the function quicker than using the code assist to get
> the function name as such my line of code would look something like:

> my_function(<cursor here>)

> Now with the Java editor I could press CTRL+SPACE and it would list the
> parameters required / optional as part of the function (similar to using
> code assist on "my_functio" without completing the function name).

> In the PHP Editor I have noticed that if the function is complete and
> you are in the same cursor position the Code Assist will return every
> possible variable / editor template values as if it didn't understand
> that we are already part of a function.

> ** Another Example **
> I am typing in my function and I remember the first parameter but don't
> remember the next parameters. Code would currently look like:

> my_function(my_first_param, <cursor here>)

> Again, with the Java Editor I could use CTRL+SPACE and it would list the
> other required / optional parameters to complete the function.

> In the PHP Editor it lists all the variables / editor templates as if it
> isn't aware of the current function.
> ***

> Is this a "bug" or is this more of a feature request to get into a later
> build of PDT?

> --
> Shawn Clark
This should work for you with PDT, because it works for me with the 1.x
branch. It works for me with 2.x as well, but 2.x PDT seems slow and buggy
right now.
Re: Question about Code Assist [message #78436 is a reply to message #78334] Sun, 17 August 2008 07:25 Go to previous messageGo to next message
Roy Ganor is currently offline Roy GanorFriend
Messages: 150
Registered: July 2009
Senior Member
Instread using only "Ctrl + Space" you should press "Ctrl +Shift + Space"
should do the work...
Re: Question about Code Assist [message #78508 is a reply to message #78436] Mon, 18 August 2008 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Roy wrote:
> Instread using only "Ctrl + Space" you should press "Ctrl +Shift +
> Space" should do the work...
>
>
Why? CTRL + SPACE is the normal content assistance?

Dave
Re: Question about Code Assist [message #78754 is a reply to message #78508] Wed, 20 August 2008 13:47 Go to previous message
David Muir is currently offline David MuirFriend
Messages: 63
Registered: July 2009
Member
Because the question was not about content assistance, but parameter
assistance.
Previous Topic:Filtering Directories
Next Topic:labelAttribute
Goto Forum:
  


Current Time: Sun Jan 29 10:25:33 GMT 2023

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

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

Back to the top