I prefer the Aptana installation to be separate from my Eclipse (Juno) for Java
ENSURE YOU HAVE INSTALLED THE PRE-REQUISITES (openjdk not officially supported but works fine)
sudo apt-get install openjdk-7-jdk libjpeg62 libwebkitgtk-1.0-0 git-core
THEN Download the standalone version from http://aptana.org/products/studio3/download
unzip Aptana_Studio_3_Setup_Linux_x86_64_3.2.2 (200MB)
mv Aptana_Studio_3 /opt (/opt is the traditional place for optionally installed software not from a package)
touch /usr/share/applications/AptanaStudio3.desktop
chown root:root /usr/share/applications/AptanaStudio3.desktop
sudo nano /usr/share/applications/AptanaStudio3.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Aptana Studio 3
GenericName=Integrated Development Environment
Comment=Aptana Strudio 3 Integrated Development Environment
Exec=/opt/Aptana_Studio_3/AptanaStudio3 %F
TryExec=/opt/Aptana_Studio_3/AptanaStudio3
Icon=/opt/Aptana_Studio_3/icon.xpm
StartupNotify=true
StartupWMClass="Aptana Studio 3"
Terminal=false
Type=Application
MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-$
Categories=GNOME;Development;IDE;
execute or double click AptanaStudio3
IF YOU RECEIVE THE FOLLOWING ERROR:
An internal error has occurred.
No more handlesNative code library failed to load. (java.lang.UnsatisfiedLinkError: /home/ubuntu/Desktop/Aptana_Studio_3/plugins/com.aptana.swt.webkitbrowser.linux.x86_64_1.0.0.1345233987/os/linux/x86_64/libcefjni.so: libjpeg.so.62: cannot open shared object file: No such file or directory)
SOLUTION: sudo apt-get install libjpeg62
then restart Aptana
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Window -> Preferences -> Aptana Studio -> Themes -> (Eclipse has white background with dark text)
File -> New PHP Project
For live editing (i.e. you have a remote Dev environment)
Expand "Project Name" -> Right click on Connections -> Add New Connection
Source = Project Name (you can browse if you have subfolders)
Destination = Remote -> New (opens a dialog "Create an FTP Connection")
Protocol (SFTP!) Server info (yes it allows for keys)
Select a destination path/directory and ut use "More options" to modify the port
Click OK and close everything
Project Explorer -> expand Project Name -> expand Connections -> double click on the new Connection
(You will see a listing of files from that remote server)
Highlight a file (i.e. index.php) and click on the arrow in the Project Explorer to download the file
Now you can edit the file with syntax highlighting and code completion and then upload it back again (again the up arrow)
WHEN YOU'VE HIGHLIGHTED THE PROJECT -> Shift + Control + U = upload
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Customize the formatting of code (Control + Shift + F) with
Window -> Preferences -> Aptana Studio -> Formatter -> PHP
Click on the Pencil to edit the settings (change the name so you can save it)
i.e. Braces tab so that you have newlines after curly braces
Click on the "export" symbol to save the settings as an .xml
ALSO (Control + Space triggers code assist)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OR use the XAMPP project for a lightweight local install for live PHP execution