Manually associating JavaScript files with the Eclipse software

If a plug-in for editing JavaScript files (such as JSEclipse) is not installed, then associate JavaScript files manually with the Eclipse software text editor.

  1. In the Eclipse software, click Window > Preferences.

  2. In the Preferences dialog, select General > Editors > File Associations.

  3. Beside the File types list, click Add.

  4. Type *.js, and then click OK.

  5. Make sure that the new entry for *.js is selected, and then click Add beside the Associated editors list.

  6. Make sure that Internal Editors is selected, select Text Editor from the list, and then click OK.

  7. In the Preferences dialog, click OK.