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.

Mi-Creativity
  • 9,554
  • 10
  • 38
  • 47
Paul Toone
  • 123
  • 1
  • 3
  • 12
  • http://stackoverflow.com/questions/873432/netbeans-php-code-completion might be relevant. – Nathan Tuggy Dec 15 '15 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`. – Prahlad Yeri Dec 15 '15 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 – Paul Toone Dec 15 '15 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 – Paul Toone Dec 15 '15 at 20:31
  • I read this article: http://stackoverflow.com/questions/3608270/netbeans-php-code-completion-for-standard-functions – Paul Toone Dec 15 '15 at 21:05

1 Answers1

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

Community
  • 1
  • 1
Paul Toone
  • 123
  • 1
  • 3
  • 12
  • 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. – Prahlad Yeri Dec 15 '15 at 21:49