Finding subtitute pluggin (After Switching from Notepad++ to Netbeans 6.8) - php

i would like to ask about some Notepad++ feature that i couldn't find in netbeans. And this feature is somehow really helpful. It's called 'function list' created by Jens Lorenz.
this feature will list all of declared function in a PHP files. So, is there any subtitute plugin that i can use to smooth my migration from Notepad++ to Netbeans ?
the main reason i switch is for svn, Phpdoc-support, and easiness maintaining medium-size web project.

What version of Netbeans are you using I am currently doing my php development in Netbeans 6.8 and it already has this functionality.
If you are looking for all functions in all files, i'm not sure that netbeans has this.
When I create a php file it displays all of my functions in the class navigator like this:
(source: developer.com)
If you do not see the navigator you can display it by pressing Ctrl+7

Netbeans has this by default, it is called the 'Navigator' CTRL + 7
You may also want to check out Alt F7 which is the Find Usages shortcut, it comes it very handy for finding every place a variable is used or when a function is declared/used

Related

howto set up autocomplete for php in eclipse similar to java

i'm pretty new to php development and want to start using an IDE with syntax checking and autocompletion.
I'm used to programming java with eclipse and thought that the PDT provides similiar functionality.
In java if i type in for example: "new Arr" and press ctrl+space autocomplete suggests a list of possibilities with "new ArrayList()" on top.
but if i try the same in a php project, for example with "new mysq" and ctrl+space i get nothing. I would expect to get "new mysqli()" or similar recommended.
Is the described functionality not included in PDT? Or did i configure something wrong?
I did the "right click on project-> configure-> Add php support" but it didn't change anything.
If you would like to have some basic auto complete feature you can use NotePad++ (download) for a quick and easy starter. This is a really great minimal program that can be used very efficiently to code in many different languages. It provides huge ammount of different functions. It is a must have tool for any developer.
I used Notepad++ to write ten thousands of lines of PHP code, it worked really great for me.
Otherwise PDT also supports autocomplete. Make sure that you have a PHP project added and then your are in a PHP file (.php extension). If you have Java autocomplete working in the same project then I think that you are in a Java project, try adding a PHP project, then a new PHP source file. Then PHP autocomplete should be working well in this source file.
Make sure also that you have PHP perspective selected.
I hope you can get by now starting using PHP! Have luck and good times using this great language!
I found the solution in this question: Why does Eclipse code completion not work on some projects?
I had to manually add this:
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
to the buildpath file of my project.

PHP code navigation in Dreamweaver CS 5

I have started to use Dreamweaver CS5 for PHP coding. The PHP syntax highlighting works fine but I don't get code completion and navigation to work.
For instance in other editors if I press the CTRL key while the mouse cursor is over a variable or function then I can jump to its definition with a mouse click.
Another problem is that when I define a class, usually a hint with a list of methods should appear after inserting "myinstance->" which is not the case in Dreamweaver.
Does Dreamweaver support this? If yes, how can I enable this functionality? Does this also work if the class definition is in a separated file which is referenced with "include"?
Regards,
I am using aptana studio based on eclipse but slightly faster than eclipse. It has very nice features such as suggestions, auto-complete, code-formatting, highlighting, showing syntax errors on the fly
Attaching a css file can help.
Open a php file -> right click on the page -> CSS Styles -> Attach Style Sheets..
Select your css file. The Code Navigator will be activated
Dreamweaver is not a good PHP IDE, other than syntax highlighting it offers little in the way of tools to help a programmer.
I'd recommend NetBeans as a good free IDE for PHP development. Eclipse is also free, but I understand that the latest version doesn't really have a working PHP module so you'll have to use the previous to current version.

How to get code completion to work for PHP in Netbeans?

How to get code completion to work for PHP in Netbeans 6.9.1?
I want Netbeans to suggest native PHP functions.
EDIT:
The auto complete only works for reserved vars and reserved keywords but not for native functions. Looking at the example above, it should suggest e.g str_replace, strlen, etc...that doesnt happen even after CTRL + SPC.
Just make sure you have enabled the PHP plugin, that should do the trick. BTW autocomplete might not work while NetBeans is checking for project changes though...
This happened to me from time to time when I used NetBeans. I used the CTRL+SPACE shortcut to invoke the code completion window.
UPDATE:
If you're interested, you can also use VIM, which has a code completion feature for php as well.
Assuming you have VIM 7 (Full version) installed, add the following to your .vimrc file:
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
To use the code completion window, simply use CTRL+X CTRL+O
Install NetBeans with PHP support. OR if you already have netbeans, you need to install PHP plugin by going to Plugins Manager.
If you want code completion for external libraries like Zend, add them in the Gobal Include Path (available in project properties)
Apparently deleting the contents of .netbeans/var/cache/index in your user directory (application data on windows etc) fixed it.

PHP Editor that able to trace dependency of all function in a file with models/controllers or another part of a framework (or something we had code)

hello a friend of mind ask something about php editor for his companion on coding.
PHP Editor that able to trace dependency of all function in a file with models/controllers or another part of a framework (or something we had code).
Basicly we use notepad++ but seeking another alternative.
I used Eclipse PDT, Aptana, Netbeans, and Komodo. For Web development (at least my style: PHP, Python, Perl, HTML, JavaScript, Ruby, CSS, all the goodies) nothing has touched Komodo IDE. There is a free/open source version called Open Komodo that, unfortunately, is not as feature complete as Komodo IDE but still great.
It runs on Windows, Linux, and Mac (which is a plus since I use all three at times), is completely extendible through plugins, has source code repository features, file transfer features (s/ftp, scp, etc) and so much more. What it really wins on is polish (things like multi-language/library code auto complete).
Komodo ide. Able to set up included libraries on the path. Full featured local and remote debugging. As a bonus it runs on Windows / Linux and Mac.
http://www.activestate.com/komodo-ide
I highly recommend NetBeans (netbeans.org). I've had great luck with it, and using the "Included Files" portion, you can include files outside the website source, so it's able to analyze back through something like CakePHP. The latest release includes support for Symfony too.
I can recommend Eclipse and Aptana Studio 1.5 (which is much better than the PDT plugin for Eclipse). I use it daily for some very large PHP projects on Windows PCs and Macs.
Take a look at nWire for PHP. It is an Eclipse PDT plugin which provides real-time code analysis and exploration. You can easily browse and even visualize all kinds of dependencies within your code.

phpeclipse: jump to function definition?

From zend's IDE I know that Ctrl+left click on a function name opens the corresponding source file and jumps to the functions definition
Is there anything similar in eclipse especially phpeclipse OR CDT?
I'm not sure if its just a window->preferences setting I don't see OR some kind of source code indexing I may have disabled which also don't find in the settings (if available)
Anyone knows the right settings?
I'm using eclipse 3.4.1 with pdt 2.0.0.v20081229.
Using Juno and PDT (PHP Development Tools) you can add this useful feature to a project in this way:
right click on the project -> Configure -> Add PHP Support.
Ctrl+Left click usually works in Eclipse as well, although it's horribly slow to react. For that reason I usually use F3 after moving the caret to the function name.
The thing with Ctrl+Click can be found in the preferences in "General > Editors > Text Editors > Hyperlinking". It can be turned off, there. But this function apparently required support from the respective editor/parser to be available at all.
The F3 key is bound to "Open Declaration" here. If that's not the case this mapping can be manually added, otherwise it may be that Eclipse is just not able to do that with PHP.

Categories