2019 Unicorn Enterprise Heavy Recruitment Standard for Python Engineers >>> 
Window7 notepadd++ configuration Scala operating environment
1. Install notepad++
2. Install nppexec plugin in notepad++
3. Download the latest version of Scala, unzip it to a directory, add SCALA_HOME to the environment variables, and verify scala in the console
4. Edit a Scala code in notepad++, save it and click once
Plug-in-"NppExec -" Execute... F6
Write in the pop-up window:
scala.bat $(FULL_CURRENT_PATH)
Use scala.bat because using scala directly will report the following error
scala C:\Users\qingfeng\AppData\Roaming\Notepad++\contextMenu.xml CreateProcess() failed with error code 2:
The system can not find the file specified.
Click to save the name scala
Then you can add the exec you just saved to the macro in the advanced options of NppExec
You can also add the following code to "Settings -> Edit Popup Menu"
<Item id="0"/>
<Item FolderName="Run as" PluginEntryName="NppExec" PluginCommandItemName="scala" />
<Item FolderName="Run as" PluginEntryName="NppExec" PluginCommandItemName="nodejs" />
<Item FolderName="Run as" PluginEntryName="NppExec" PluginCommandItemName="runruby" />
Then just right click on Run As
You can set a combination of shortcut keys for scala exec in the shortcut key management
