简体   繁体   中英

Eclipse 2020 Javascript Editor Default Not Working

Everytime I open a js file in Eclipse 2020 it defaults to the system text editor. I have set Window->Preferences->General->Editors->File Associations *.js to JavaScript Editor and set this as the default with not chnage in the behaviour.

If I open a js file by right click Open with->Other->Internal Editors, choose JavaScript Editor and tick Use for all '*.js' files, the particular file will open with the javascript editor this time but only this time. No other js files open afterwards and even if I double click the same file it still lopens with the default text editor.

The only way I can open js files with the javascript editor is if I always right click Open with->Other->Internal Editors, choose JavaScript Editor, each and every time I want to open a js file.

In addition, the open decalration does not work for js files. It works for java files though.

you can fix it by clicking in Window->Preferences->General->Editors->File Associations then you can add *.js in the file list if it does not show up then you click on *.js and on the bottom of the screen you get a list with the used editors of the file type there should be generic text editor if it is not there you can add it on the right then you right click generic text editor en set to default i hope this fixes youre problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM