Ferodynamics Network

popular: profile privacy, mobile privacy

December 23, 2008

Have you heard of NetBeans? It has been around for ages as a Java tool but now it has PHP and a whole load of goodies that make it excellent for WordPress development. Let me lay some out for you.

For this example I have created a new project in NetBeans for WordPress (There is a tutorial here if you don’t know how to do that).

The first point of note is that for some time now Jacob Santos has been diligently documenting the WordPress code. This is quite useful when you are surfing around trying to find out what you want, but with NetBeans all of this documentation is read into the code complete function. So now you have WordPress code completion. For example, if you type add_ac and then press ctrl + space you get:

Add action autocomplete

All documented WordPress functions can be found through the auto complete letting you know the parameters, the options, and even the file where it can be found. But that isn’t all. Often you want to look through the function itself to find out more. That’s easy. Right click on the function to get the menu up:

Find Declaration

Selecting find declaration will open the file and scroll to the original function declaration. I can’t tell you how many hours I have spent function hunting before now.

You might also note on that image another option marked Find Usages. Want a quick route to find every hook in WordPress? Well, actions are defined by the do_action function, so type in ‘do_action();’, right click and choose find usages. You get a handy list:

List of WordPress actions

Something else I love are the code shortcuts. For example, type in cls and then tab and you have a class declaration waiting for you to type in the name. It has loads more, functions, loops, conditions, intanceof, and you can add your own shortcuts to that list.

If you are developing for WordPress I recommend giving NetBeans a try. You might also want to take a look at this demonstration screencast that covers most of these points in an example showing how to create a flickr slideshow.

Wordpress Chat
one comment
page 1308
Html 5 Gallery
6 comments
page 1305
Html 5 Gallery
6 comments
page 1305
Silence Is Golden
3 comments
page 213
Questions About Habari For Wordpress Users
6 comments
page 424
Theming Habari Vs Wordpress
13 comments
page 440
My Experience Of Flexx
4 comments
page 1026
Plugin Update Fun With Photo Data 2
one comment
page 815
Post Image The Easy Peasy Way
26 comments
page 1065
Categories Vs Tags Either Neither Or Both
12 comments
page 7
Gaining Benefits From Plugins
8 comments
page 1167
Fun With Theme Widgets
24 comments
page 867
Beware Wp Cache
8 comments
page 1310
Six Million Ways To Die Choose One
14 comments
page 1128
Post Image The Easy Peasy Way
26 comments
page 1065
Post Image The Easy Peasy Way
26 comments
page 1065
Wordpress Chat
one comment
page 1308
Post Image The Easy Peasy Way
26 comments
page 1065
Beware Wp Cache
8 comments
page 1310
Wordpress Chat
one comment
page 1308
Wp Polls Reviewed
one comment
page 58
Fun With Photo Data
12 comments
page 330
Html 5 Gallery
6 comments
page 1305
Fun With Sidebar Tabs Styling
2 comments
page 336
Using Your Own Url Shortener
4 comments
page 1190
Html 5 Gallery
6 comments
page 1305
My Experience Of Flexx
4 comments
page 1026
Fun With Sidebar Tabs
193 comments
page 57
Html 5 Gallery
6 comments
page 1305
Fun With Plugins
27 comments
page 14
Wordpress 25 Exif Fields
12 comments
page 230
Html 5 Gallery
6 comments
page 1305
Html 5 Gallery
6 comments
page 1305
Html 5 Gallery
6 comments
page 1305
Beware Wp Cache
8 comments
page 1310
Quick N Dirty Replacement Text
no comment
page 122
Theming Habari Vs Wordpress
13 comments
page 440
Fun With Sidebar Tabs Styling
2 comments
page 336
Beware Wp Cache
8 comments
page 1310
  updated 1 seconds ago
Wednesday, 3pm
NetBeans ? WordPress ???????? – ????????

[...] Why you should try Netbeans – WP FUN [...]

Wednesday, 6pm
edkohler

Wow, this looks impressive. Thanks for breaking things down. I have a few WP issues I've been meaning to address but wasn't sure how to go about it so I'll give this a try.

Wednesday, 9am
bingu

Thanks for your tips.
Netbeans is really a great PHP Editor. :)

Wednesday, 9am
??Netbeans??WordPress | ??blog

[...] ??????NetBeans???WordPress??????Why you should try Netbeans? [...]

Tuesday, 7pm
Micha

Thanks for the tip! The IDE looks really nice.
At the moment i'm using Aptana Studio.

Tuesday, 5pm
Scott

I agree as I have been using netbeans as a php editor and except for a few css editor issues, Netbeans is perfect! I have finally pulled the plug on using dreamweaver and have gone to Netbeans only…I am not looking back!