网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

IntelliJ IDEA怎么开启用推断类型替换var

时间:2024-10-14 00:34:08

1、首先,打开一个的IntelliJ IDEA的代码工具界面中

IntelliJ IDEA怎么开启用推断类型替换var

2、进入到IntelliJ IDEA的界面中之后,点击左上角中的file 菜单

IntelliJ IDEA怎么开启用推断类型替换var

3、点击了file菜单之后,弹出了下拉菜单选中为 settings选项

IntelliJ IDEA怎么开启用推断类型替换var

4、进入到了settings界面中,选中左侧中的 code folding 选项

IntelliJ IDEA怎么开启用推断类型替换var

5、选中左侧中的 code folding 选项,勾选上 replace var with inferred type 选项

IntelliJ IDEA怎么开启用推断类型替换var

6、勾选上 replace var with inferred type 选项,点击 ok 来保存设置。

IntelliJ IDEA怎么开启用推断类型替换var
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com