Idea 配置

idea的配置

记录下配置, 避免升级后无法恢复。

1). 在目录下
D:Program FilesJetBrainsIntelliJ IDEA Community Edition 14.1.2in
修改 idea.properties 文件, 文件开头添加

user.home=D:/Private
idea.home.path="D:/Program Files/JetBrains/IntelliJ IDEA Community Edition 14.1.2"

2). 安装scala插件

files -> other settings -> 几个 default settings

3). 创建sbt工程

用idea创建sbt工程, 编译调通, 然后重新导入idea, 保证代码提示正常。

sbt compile  
sbt assembly  
sbt ~run

4). assebmly.sbt写法

import AssemblyKeys._ // put this at the top of the file

assemblySettings

assemblyOption in assembly ~= { _.copy(includeScala = false) }

--- 她说, 她是仙,她不是神
原文地址:https://www.cnblogs.com/bregman/p/4466222.html