如何在类型安全激活器中创建 Eclipse Scala 项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25814561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create an Eclipse Scala project in typesafe activator?
提问by Giorgio
I have installed typesafe activator, created a project, added my own Scala classes and successfully compiled and run my code.
我已经安装了类型安全激活器,创建了一个项目,添加了我自己的 Scala 类并成功编译并运行了我的代码。
Now I was looking for a function to eclipsifymy project using activator (similarly to what can be done with play) but I cannot find anything neither on the typesafe website nor by searching the internet.
现在我正在寻找一个函数来使用激活器来使我的项目黯然失色(类似于可以通过 play 完成的事情),但我在类型安全网站上或通过搜索互联网都找不到任何东西。
Does activator provide such a function?
Activator 有提供这样的功能吗?
回答by alexkrishnan
cdto the directory then type activator eclipse
cd到目录然后输入 activator eclipse
For more options see here: https://www.playframework.com/documentation/2.3.x/IDE
有关更多选项,请参见此处:https: //www.playframework.com/documentation/2.3.x/IDE
回答by lutzh
You can do this from the Activator Web UI. After selecting/opening your project, in the "Your application is ready" pop-up select "Code view & Open in IDE". In the following code view there's the "Browse code" column.. to the right of the "Browse code" headline, there's a little gear wheel. That will open a menu that let's you open the project outside of Activator:
您可以从 Activator Web UI 执行此操作。选择/打开您的项目后,在“您的应用程序已准备就绪”弹出窗口中选择“代码视图并在 IDE 中打开”。在下面的代码视图中有“浏览代码”列……在“浏览代码”标题的右侧,有一个小齿轮。这将打开一个菜单,让您可以在 Activator 之外打开项目:


回答by Azzie
in SBT type eclipse, in activator select code/edit/eclipse
在 SBT 类型 eclipse 中,在激活器中选择代码/编辑/日食
回答by Deepanshu
You need to build your project once so that it downloads the required sbt plugins.
您需要构建一次项目,以便它下载所需的 sbt 插件。
Easy way to build is using the activator ui. Then in the "Code" tab click on "Build Eclipse project" or activator eclipsefrom the command line.
构建的简单方法是使用activator ui. 然后在“代码”选项卡中单击“构建 Eclipse 项目”或activator eclipse从命令行单击。

