Ctrl+Alt+V自动生成变量名,图中Specify type选项勾选之后会显示出变量的类型。

默认是没有勾选的,为了方便设置为自动勾选,点击
Settings
,在Type Annotations选项卡里,勾选Local definition
选项。
以后再自动生成变量名的时候会带有类型。

Ctrl+Alt+V自动生成变量名,图中Specify type选项勾选之后会显示出变量的类型。
Settings
,在Type Annotations选项卡里,勾选Local definition
选项。本文标题:IDEA中scala生成变量后自动勾选显示类型
本文链接:https://www.haomeiwen.com/subject/baqupftx.html
网友评论