【scala】【idea】idea开发scala代码的一些快捷方式

一、IDEA编写Scala代码时自动显示变量类型

设置方法:
settins -->Editor–> Code Style --> scala --Type Annotations

【scala】【idea】idea开发scala代码的一些快捷方式

二、ctrl+/ 自动注释代码时,在代码前添加//,而不是在行首添加//

settins -->Editor-->Code Style-->Scala

把Line comment at first column 取消勾选(默认是勾选的)

【scala】【idea】idea开发scala代码的一些快捷方式

三、scala自动导包设置

settins -->Editor-->Auto Import

把框内的选项勾选上【scala】【idea】idea开发scala代码的一些快捷方式