How to install Scala plugin for IntelliJ
Alternate Way Is open IntelliJ IDEA, click on Configure -> Click on Plugins -> Click on Install JetBrains Plugins -> Search for Scala -> Click on install button
Check the images
Click on Plugins
Click on Install JetBrains Plugins
For IntelliJ Mac / IOS,
Click on IntelliJ IDEA
text besides on top left corner then Preferences->Plugins-Install JetBrains Plugins-> Type Scala->Install
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.
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
P.S. Sometimes the latest versions of plugin won't work. Try with a bit older version.