使用Eclipse 3.6播放2.0,Scala模板编辑 [英] Play 2.0 with Eclipse 3.6, Scala template editing

查看:118
本文介绍了使用Eclipse 3.6播放2.0,Scala模板编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Play和Scala世界的新手,所以我需要一些帮助来弄清楚如何使用Eclipse编辑scala模板文件。我已经安装了scala ide 2.9,但是当我尝试编辑index.scala.html时,该文件的内容不可编辑...



请任何人帮忙我呢?

解决方案

我刚刚经历过这件事,但幸运的是,我从IntelliJ到Eclipse完全迁移。 / p>

有些设置需要使用Scala模板,但是完成此操作的最简单方法之一就是按照以下步骤进行:



步骤1:添加文件扩展名



http://help.eclipse.org/helios/index.jsp? topic =%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-51.xhtml





确保您的文件扩展名已正确添加到文件关联。



步骤2:



查看关联的编辑器。在上图中,您将看到唯一的相关联的编辑器 *。htm Web浏览器。所以你需要点击添加...按钮添加Scala编辑器。不要忘记将其设置为默认值:)



步骤3:





右键单击您的Scala模板,并确保您正在选择正确的编辑器。您也可以使用它在编辑器之间切换。



希望这有帮助!


I´m new to Play and Scala world, so I´m needing some help to figure out how can I edit the scala template files using Eclipse. I already installed scala ide 2.9 but when I try to edit the index.scala.html, the contents of the file aren´t editable...

Please can anyone help me?

解决方案

I experienced this just recently, too, but lucky for you I made the full migration from IntelliJ to Eclipse.

There is some setting up you need to do with the Scala templates, but one of the easiest ways to get it done is following these steps:

Step 1: Add file extensions

http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-51.xhtml

Be sure that your file extensions are properly added to the file associations.

Step 2:

Look at the associated editor. In the image above you'll see that the only associated editor with *.htm is Web Browser. So you'll need to hit the "Add..." button to add the Scala editor. Don't forget to set it as default :)

Step 3:

Right-click on your Scala template and be sure that you are choosing the right editor. You can also use this to switch between editors.

Hope this helps!

这篇关于使用Eclipse 3.6播放2.0,Scala模板编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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