In this chapter, we are going to setup Aptana IDE for Ext JS 6 development. You can follow the same thing to setup Eclipse IDE also.
Aptana is a powerful open-source web development IDE. Please download and install Aptana Studio 3.
Now, you need to install Spket IDE plugin from spket.com. Spket is a powerful toolkit for JavaScript and XML development. It enables autocomplete feature for Ext JS as soon as you install and configure Spket IDE plugin in Aptana or Eclipse.
Now, you need to configure Spket plugin. Follow the below steps to configure Spket plugin in Aptana/Eclipse in windows platform:
Now, create new project and JavaScript file and press Ctrl + Space. This shows autocomplete feature with help as shown below:
This is how you can get autocomplete feature in Aptana or Eclipse.
Aptana or Eclipse comes with JSLint and JavaScript Syntax validators. However, JSLint validator is disabled by default. To enable it,
Now the Problems window displays JavaScript errors and warnings for your project. However, you need to exclude extjs sdk folder because JSLint shows errors and warnings for many sdk JS files.
To exclude it, right click on sdk folder in Project explorer -> select Properties -> select Resource Filters under Resource node and click 'Add':
Select Exclude All, Files and Folders, All Children and enter * in File and Folder Attributes as shown below:
Now, you get errors and warnings for your JavaScript files only.
Aptana comes with default code formatter for JavaScript. Press Ctrl + Shift + F to format JavaScript code in Aptana.
So, in this way you can setup development environment using Aptana or Eclipse IDE in Windows platform.