简体   繁体   中英

Configuring eclipse to consider .sah extension as .js extension

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..

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 ).

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