IntelliJ的Scala配置

时间:2023-03-10 00:36:30
IntelliJ的Scala配置

打开IDE:

file->New->Project->Maven->Next

IntelliJ的Scala配置

名字随便命名,到后面可以改的:

IntelliJ的Scala配置

存放代码项目的位置,名字还是随便命名,可以改的,但是路径要自定义好:

IntelliJ的Scala配置

设置库包的存放位置,路径自行更改:

file->setting->Build,Execution,Deployment->Build Tools->Maven

IntelliJ的Scala配置

file->Project Structure

IntelliJ的Scala配置

IntelliJ的Scala配置

设置新的可用的SDK:

IntelliJ的Scala配置

IntelliJ的Scala配置

IntelliJ的Scala配置

加载新的库包:

在网站 http://mvnrepository.com/ 里面可以找到

IntelliJ的Scala配置

复制类似于 XML 的东西到 pom.xml 里面就好

IntelliJ的Scala配置

Setting->Editor->File and Code Templates->Includes

/**
* Created with IntelliJ IDEA.
* Description:
* User: ${USER}
* Date: ${YEAR}-${MONTH}-${DAY}
* Time: ${TIME}
*/

IntelliJ的Scala配置