A "Swiss-Army Knife" Eclipse Setup
As a consultant, I'm often forced to switch development environments based on the customer's preferences such as: Code Warrior, Eclipse, KDevelop, hand written makefiles, autoconf scripts, and qmake project files. More often than not the alpha developer has championed a setup and toolset, making it a standard. Sometimes this setup is documented, but more often than not, what is documented is often quickly falls out of date.
This is how I setup my Eclipse environment to handle just about anything:
Step 1: Setup IDE for Java EE Developers
Download Eclipse IDE for Java EE Developers from eclipse.org. This 162MB tarball has everything you need to develop JEE and Web applications and includes the IDE, tools for JEE and JSF, Mylyn (task list) and more.
Step 2: Setup C/C++ Development
Next, update to add C/C++ to add GNU C/C++ support to Eclipse. Select Help->Software Updates. Select the C/C++ packages, install, and restart Eclipse.
Step 3: Adding Python support to Eclipse
Python is one language that has one quark that drives me nuts -- tabs versus spaces. If your editor inserts tabs, causing you to inadvertently mix tabs and spaces for indention, the python interpreter will often do some very strange things. I have wasted a lot of time tracking down issues due to mixing tabs and spaces. The best solution-- use PyDev.
Help -> Software Updates, Available Software. Add Site: http://pydev.sourceforge.net/updates/.
Install and restart.
Step 4: Adding Perl Integration (EPIC)
Perl is a wonderful scripting language, but wouldn't it be nice to have an editor with syntax highlighting, on-the-fly-syntax checking, a debugger, global and local variable inspection and expression evaluation? You can with EPIC.
Select Help > Software Updates... in Eclipse, add the update site http://e-p-i-c.sf.net/updates/ and follow the on-screen instructions.
Step 5: Web Tools Platform (WTP)
WTP is a suite of plug-is with tools for developing J2EE applications, and includes editors for HTML, Javascript, CSS, JSP, SQL, XML, DTD, XSD, and WSDL.
Select Help > Software Updates... in Eclipse, add the update site http://download.eclipse.org/webtools/updates/ and install. Note the site might already be in your Eclipse setup, so you can click "Manage Sites..." and check the site, and then back to the available software tab.
Step 6: Make it Harder to Check in Code
Some organizations rely on "automated code review tools" or rules checkers. I personally feel that if you need to rely heavily on those tools then you don't have the right personnel.
Step 6a Eclipse Checkstyle. Help->Software Updates->Find and Install.... you know the drill by now : http://eclipse-cs.sourceforge.net/update
Restart Eclipse.
Step 6b PMD. PMD scans Java source code and looks for potential problems. Help->Software Updates->Find and Install.... http://pmd.sf.net/eclipse
Step 7: Subclipse Subversion Plug-in
The Eclipse update site URL is: http://subclipse.tigris.org/update_1.4.x
Step 8: JSEclipse JavaScript Editing Plug-in
JSEclipse is a JavaScript editing plug-in from Adobe. The update site URL is: http://download.macromedia.com/pub/labs/jseclipse/autoinstall/
Step 9: PHP and PHP Debugger
Install PHP. Click here for the instructions. Next, install the Zend debugger.
And there you have my current Eclipse setup. Ta-Dah.
Labels: Eclipse, Programming