如何为 IntelliJ 安装 Scala 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38973049/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 08:33:35  来源:igfitidea点击:

How to install Scala plugin for IntelliJ

scalaintellij-idea

提问by Balkrishan Aggarwal

I've installed IntelliJ IDEA and scala on my Windows machine, but those are not integrated and I'm not able to use scala in IntelliJ. How can I configure and use both?

我已经在我的 Windows 机器上安装了 IntelliJ IDEA 和 scala,但它们没有集成,我无法在 IntelliJ 中使用 scala。如何配置和使用两者?

回答by Balkrishan Aggarwal

Open IntelliJ IDEA, go to File Menu --> Plugins --> [ Or directly press Ctrl+Alt+S ] Click on "Browse repositories" button and enter "Scala". Select Scala plugin to install it.

打开 IntelliJ IDEA,转到 File Menu --> Plugins --> [ 或直接按 Ctrl+Alt+S ] 单击“浏览存储库”按钮并输入“Scala”。选择 Scala 插件进行安装。

If you have Proxy restrictions or any other problems, you may download the plugin to you machine from the below link and choose the option "Install plugin from disk"

如果您有代理限制或任何其他问题,您可以从以下链接将插件下载到您的机器,然后选择“从磁盘安装插件”选项

https://plugins.jetbrains.com/plugin/?id=1347

https://plugins.jetbrains.com/plugin/?id=1347

P.S. Sometimes the latest versions of plugin won't work. Try with a bit older version.

PS 有时最新版本的插件不起作用。用老一点的版本试试。

回答by Binu96

Alternate WayIs open IntelliJ IDEA, click on Configure -> Click on Plugins -> Click on Install JetBrains Plugins -> Search for Scala -> Click on install button

另一种方式是打开IntelliJ IDEA,点击Configure -> 点击Plugins -> 点击Install JetBrains Plugins -> 搜索Scala -> 点击安装按钮

Check the images

检查图像

Click on Plugins

点击插件

Click on Install JetBrains Plugins

单击安装 JetBrains 插件

回答by Dileep Dominic

Click on File - > Settings and select plugins. Then select the Scala from the list provided and click Install. Once installed it will ask to restart the IDE

单击文件 - > 设置并选择插件。然后从提供的列表中选择 Scala 并单击安装。安装后它会要求重新启动IDE

回答by Prachi gupta

For Mac, Click on IntelliJ IDEA -> Preferences -> Plugins. Select scala and install. Restart the intellji for the changes to take effect.

对于 Mac,单击 IntelliJ IDEA -> 首选项 -> 插件。选择scala并安装。重新启动 intellji 以使更改生效。

回答by HariKishore

For IntelliJ Mac / IOS,

对于 IntelliJ Mac / IOS,

Click on IntelliJ IDEAtext besides enter image description hereon top left corner then Preferences->Plugins-Install JetBrains Plugins-> Type Scala->Install

点击左上角旁边的IntelliJ IDEA文字在此处输入图片说明,然后Preferences->Plugins-Install JetBrains Plugins-> Type Scala->Install

回答by Spandana r

First time users in IntelliJ IDEA we checked whether Scala Plugin is available or not.

第一次使用 IntelliJ IDEA 的用户我们检查了 Scala 插件是否可用。

Go to File - > settings -> plugin -> Install -> Restart

转到文件 -> 设置 -> 插件 -> 安装 -> 重启

Here is complete installations with step by step process with pictures:

以下是带图片的分步过程的完整安装:

http://commandstech.com/how-to-add-scala-plugin-on-intellij-idea-in-ubuntu/

http://commandstech.com/how-to-add-scala-plugin-on-intellij-idea-in-ubuntu/