一、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代码的一些快捷方式

相关文章:

  • 2021-05-14
  • 2021-04-08
  • 2022-01-10
  • 2021-12-18
  • 2022-02-15
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2021-04-01
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2021-05-06
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案