Configuring eclipse to consider .sah extension as .js extension

我与影子孤独终老i 提交于 2019-12-08 06:43:00

问题


I have imported a framework in eclipse. It contains files with .sah extension. I want eclipse to consider those .sah files as .js files (javascript files), so that editing and working on that frameworks get easier. So that I can use short cuts like F3(like pressing F3 takes us to function defnition in java project) and all..

Thanks..


回答1:


To treat .sah files as .js files, do the following:

  1. In Window > Preferences: General > Content Types select the content type Text > JavaScript Source File
  2. In the section File associations click Add... and enter *.sah

Make sure, the project is a JavaScript project and the .sah files are in the Include Path (Project > Properties: JavaScript > Include Path, tab Source).



来源:https://stackoverflow.com/questions/50523987/configuring-eclipse-to-consider-sah-extension-as-js-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!