1

I'm sure this is easy but after 2 days of searching I cannot figure it out. I had NetBeans 8.0 set up so when I typed php commands it would auto complete (or suggest other commands in a drop-down) and give me the parameters needed. For example if I wrote $string = su there would be a drop-down with substr(string $string, int $start[,int $length]) , substr_count(string $haystack, string $needle[,int $offset = 0[,int $length]]) , substr_compare.., etc..

My computer crashed and so I started from scratch and reinstalled php and netbeans 8.0 and can't seem to get netbeans auto completing like it was before.

I have setup the php interpreter but don't know if I need to install a plugin or if I'm missing some easy step.

Anyone with the answer would be appreciated.

5
  • stackoverflow.com/questions/873432/netbeans-php-code-completion might be relevant. Commented Dec 15, 2015 at 19:49
  • Is netbeans recognizing your php installation? Re-check that through settings. If not, make sure that php is in the path variable when you start netbeans. For example, go to the command prompt and issue php --version to make sure it is installed, then issue netbeans. Commented Dec 15, 2015 at 20:05
  • @ Nathan I tried that and it did not resolve the issue. I believe that is only for those who have updated netbeans instead of php not completing on a fresh install. Thank you though Commented Dec 15, 2015 at 20:27
  • @PrahladYeri Yes, php -- version returns the version of php through command prompt. In the settings of netbeans I have php 5 interpreter set to c:\php\php.exe which is the correct location for php.exe Commented Dec 15, 2015 at 20:31
  • I read this article: stackoverflow.com/questions/3608270/… Commented Dec 15, 2015 at 21:05

1 Answer 1

0

I read this article: NetBeans PHP Code Completion for Standard Functions I was opening files and not putting them into a project. Duh! Thanks for everyones help though

Sign up to request clarification or add additional context in comments.

1 Comment

In all "heavy-weight" IDEs like Eclipse, Netbeans, etc. everything revolves around a "project", always remember that! Generally each type of project is associated to a particular language/framework such as php which tells the IDE what features to invoke for files in those type of projects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.