配置eclipse以将.sah扩展名视为.js扩展名 [英] Configuring eclipse to consider .sah extension as .js extension

查看:155
本文介绍了配置eclipse以将.sah扩展名视为.js扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在eclipse中导入了一个框架.它包含扩展名为.sah的文件. 我希望eclipse将这些.sah文件视为.js文件(javascript文件),以使在该框架上进行编辑和使用变得更加容易.这样我就可以使用F3之类的快捷方式(就像按F3可以使我们在Java项目中进行函数定义)之类.

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

谢谢..

推荐答案

要将.sah文件视为.js文件,请执行以下操作:

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

  1. 窗口>首选项:常规>内容类型 中,选择内容类型 文本> JavaScript源文件
  2. 文件关联 部分中,单击 添加... 并输入*.sah
  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

请确保该项目是一个JavaScript项目,并且.sah文件位于包含路径"(项目">属性":JavaScript>包含路径" ,标签为"") .

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

这篇关于配置eclipse以将.sah扩展名视为.js扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆