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 feature image page?
24 comments on page 1065

Addsettingsfield?
3 comments on page 793

Shorter link?
4 comments on page 1190

Shorter link?
4 comments on page 1190

Cssimageforlogin?
no comment on page 128

Cssimageforlogin?
no comment on page 128

Get featured image url wordpress?
24 comments on page 1065

How to clear wpcache?
9 comments on page 1310

Photo gallry code html5?
6 comments on page 1305

Wordpress get image size?
24 comments on page 1065

Sitecouk wptheme?
2 comments on page 1376

Wordpress chat disqus?
no comment on page 1308

Howtocreategoodsizelayout?
4 comments on page 1026

Friend connect profile?
6 comments on page 1364

Get medium image from post?
24 comments on page 1065

Tabbed widgets wp?
no comment on page 333

Wordpress pictue cache lschen?
9 comments on page 1310

Wordpress plugin post separator?
no comment on page 1371

Display photos html 5?
6 comments on page 1305

Fun wordpress themes?
2 comments on page 1376

Wp featured image without size?
24 comments on page 1065

Wordpress get url global?
4 comments on page 1190

Wp unlimited?
3 comments on page 1141

Html5 image gallery?
6 comments on page 1305

Wordpress exif plugin?
12 comments on page 230

Css login screen?
no comment on page 128

Htlm 5 photo gallery?
6 comments on page 1305

Image gallery html 5?
6 comments on page 1305

Css login screen?
no comment on page 128

Comments by intensedebate?
7 comments on page 1175

Wordpress andrew rickmann?
2 comments on page 1376

Wordpress medium large?
24 comments on page 1065

Fun with uninstallation wordpress?
53 comments on page 100

How to clear wp cache?
9 comments on page 1310

Photoshop frameworks?
3 comments on page 296

Wordpress post multiple images?
24 comments on page 1065

Html5 gallery?
6 comments on page 1305

Html 5 photo gallery?
6 comments on page 1305

Login screen css template?
no comment on page 128

Html5 photo gallery code?
6 comments on page 1305
  every 2000s, 1s ago, in 0.03s.
 __
(__)
   `
 NetBeans ? WordPress ???????? – ????????

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

 __
(__)
   `
 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.

 __
(__)
   `
 bingu

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

 __
(__)
   `
 ??Netbeans??WordPress | ??blog

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

 __
(__)
   `
 Micha

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

 __
(__)
   `
 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!


0.01s