使用Eclipse 3.6播放2.0,Scala模板编辑

编程入门 行业动态 更新时间:2024-10-28 16:17:53
本文介绍了使用Eclipse 3.6播放2.0,Scala模板编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

请任何人帮忙我呢?

解决方案

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

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

步骤1:添加文件扩展名

help.eclipse/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

help.eclipse/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模板编辑

本文发布于:2023-07-11 17:16:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1094809.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模板   编辑   Eclipse   Scala

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!