Javascript file editing stopped working with Eclipse 2020-06

 20

The Eclipse IDE for PHP Developers is made up of components from various Eclipse projects. In the Eclipse IDE 2020-06 release the JavaScript support for .js file is no longer provided by the JavaScript editor from JSDT, but by Eclipse Wild Web Developer.

Wild Web Developer does not provide a separate Editor for JavaScript, but extends the Generic Text Editor by code completion, syntax highlighting, validation, navigation, etc. for JavaScript.

To get back the JSDT JavaScript editor you have to uninstall Eclipse Wild Web Developer and install JavaScript Development Tools from the Eclipse IDE 2020-03 release (I guess the problems if you had both were solved by simply removing or disabling the JavaScript editor in the 2020-06 release):

  1. Uninstall Eclipse Wild Web Developer: In Help > About Eclipse IDE: Installation Details, in the Installed Software tab select Eclipse Wild Web Developer and click Uninstall...
  2. Install JavaScript Development Tools from the 2020-03 release: In Help > Install New Software... work with https://download.eclipse.org/releases/2020-03 and choose JavaScript Development Tools to install




0

Yes versions above 2020-05 works with General Editor as default editor for JS files in eclipse

Window--> Preferences --> File Associations --> Select (*.js) and then select Generic Editor




在 Eclipse 中指定 JavaScript 檔案編輯器,您需要確保安裝了支援 JavaScript 編輯的插件。通常情況下,Eclipse 都附帶了 JavaScript 編輯的插件,稱為 "JavaScript Development Tools (JSDT)",但是請確認您安裝的 Eclipse 版本中是否包含這個插件。如果不包含,您可以進行以下步驟來安裝:

1. 打開 Eclipse IDE。

2. 在菜單中選擇「Help」>「Eclipse Marketplace」。

3. 在 Eclipse Marketplace 頁面的搜索框中輸入 "JavaScript Development Tools" 或 "JSDT",然後按下「Go」。

4. 在搜索結果中,應該會看到 JavaScript Development Tools (JSDT) 插件。點擊 "Install" 按鈕開始安裝。

5. 接受相關的使用條款和條件,然後按照指示完成安裝過程。安裝完成後,您可能需要重新啟動 Eclipse。

安裝完成並確認已經存在 JavaScript Development Tools (JSDT) 插件後,您應該可以使用以下步驟來指定 JavaScript 檔案的編輯器:

1. 在 Eclipse 中打開或創建一個 JavaScript 檔案(擁有 .js 副檔名的檔案)。

2. 在 Eclipse 的頂部菜單中,選擇「Window」>「Preferences」。

3. 在 Preferences 對話框中,展開「General」選項,然後選擇「Editors」。

4. 在 Editors 選項下,選擇「File Associations」。

5. 在 File Associations 頁面中,您應該可以看到一個列表,其中包含了 Eclipse 目前關聯的檔案類型和編輯器。

6. 在列表中找到 "JavaScript Files"(擴展名為 .js 的檔案),如果沒有找到,您可以點擊「Add...」按鈕並輸入 *.js 來手動添加。

7. 在 "Associated editors" 部分,點擊 "Add..." 按鈕,然後選擇 JavaScript 編輯器(通常是 "JavaScript Editor" 或 "JSDT Editor")。

8. 確定選擇了正確的編輯器後,點擊「OK」按鈕來保存設置。

現在,當您打開 JavaScript 檔案時,應該會自動使用指定的 JavaScript 編輯器來編輯檔案。如果在安裝插件或設置編輯器時遇到問題,請確認您的 Eclipse 版本和插件是否與上述步驟相符。如有必要,請參考 Eclipse 的官方文檔或社群網站以獲取更多幫助。


Comments

Popular posts from this blog

How to use Visual Studio Code to debug ReactJS application

Github Link & Web application demonstration on YouTube

Java Interview Questions and Answers 1.0