Mobile and web design development (Android, iPhone, WordPress)
Google+TwitterLinkedinFacebook
Subscribe
HomeWordPressSetup code completion for WordPress in Eclipse

Setup code completion for WordPress in Eclipse

If you use Eclipse+PDT as a WordPress development tool, you’ll notice that whenever you type a PHP command, Eclipse will pop-up suggestions for completing what you type in the editor. These list of commands are limited to PHP by default. Wouldn’t it be nice if the WordPress API commands would be included in that list like the one show below? Here’s how.

Requirements

  • Eclipse with the PHP Development Tools installed
  • A copy of the WordPress source code

The Steps to include WordPress code completion in Eclipse

  1. Download a copy of the WordPress source code.
  2. Unzip the WordPress source code into a directory inside your Eclipse workspace and create an Eclipse project for the WordPress souce code you downloaded in step 1.
  3. Now start creating your WordPress project in Eclipse. if you already have an existing WordPress project, you can skip to step 4.
  4. This is the key step. Add the WordPress project you created in step 2 into the PHP Include Path of your WordPress project. To do this, right click on your WordPress project’s name and click on the Properties menu item. You will see the PHP Include Path item on the left side of the dialog box — click on it. Click the Projects tab and click Add. Select the WordPress project that you created. You should now have a screen similar to the one below.

Click OK.

Now code completion for WordPress API commands is available for your WordPress project on your Eclipse development environment. Just repeat the procedure for any WordPress project.

Leave a Reply

  • Hi, I'm Gerry. Welcome to my blog and sites about mobile, technology, The Pinoy, #crazyidea, games, WordPress, Ubuntu, Mac, iOS, Android, Symbian... I started sites like Ortigas Online and iMakati which focuses on local community information. Read more about Gerry
    Status (Twitter, Linkedin, Facebook...)

    Just found out that the Android-based HTC Sensation XL phone is now in the Philippines for about Php 28,000.

  • Visit my other sites

    • Gerry

      My blog about the Philippines, mobile, technology, games, mac, linux...

    • Apps & Games

      Reviews, news of mobile apps & games for Android, iOS, Blackberry, Symbian...

    • Connected Phone

      The computer is the mobile phone. The always connected phone evolution.

    • Pinoy Me

      Pinoy businesses, enterprises, startups, professionals all over the world

    • Java Midlet

      Java mobile apps & games - news, reviews, tips, mobile phone & devices

  • PINOI Sites

    Are you interested in putting up your own PINOI-enabled local community site? Contact me

    • PINOI

      Enabling local communities on the Internet

    • Makati

      iMakati.com is a site that provides information about Makati City.

    • Ortigas

      Community site that provides information about the Ortigas Center.