IDEA 12大全局配置,快速提供开发效率

IDEA相关配置

整理于 2024.06.09 23:23 @程序员猴哥

返回到 Java开发知识汇总 目录

IDEA相关配置

  • 1 编码设置:

    File-->new projects settings-->settings for new projects-->editor--->file encodings-->global encodeing: utf-8 ;project encoding:utf-8; default encoding for properties files: utf-8

    image-20240610081914171

  • 2 mavne:

    File-->settings-->build--->build tools--->maven

    maven home directory: 默认获选择本地的maven安装地址

    user settings file: 指定本地maven 安装地址的settings.xml文件路径

    local repository: 指定本地maven 安装的路径

  • 3 字体设置:

    File-->settings--editor --> font

    image-20240609221631122

  • 4 方法之间的分割线,行号的设置

    File-->settings--editor --> Appearance

    image-20240609221850746

  • 5 导入包时不导入所有包,按使用需要导入,这里设置包下面的引用超过500个包则使用星导入,大量星导入会影响加载速度:

    File-->settings--->Editor--->code style-->java

    image-20240609222255237

  • 6 设置类的默认注释,新建类自动添加注释,也可以设置接口,枚举的注释

    File-->settings-->Editor-->File and code Templates-->class

    image-20240609222904871

  • 7 代码提示不区分大小写

    File-->settings-->Editor--->General--->code compleation -->match case 不勾选,不区分大小写:在编码时不区分大小写提示编码匹配

    image-20240609223304530

  • 9 自动导包,代替alt+enter 自动导入使用的包

    File-->settings-->Editor--->General-->Auto Import 自动导入包和自动删除没有用到的包应用,若有同名的类则需手工导入

    image-20240609223815713

  • 10 禁止对import重排序

    File-->settings-->Editor-->code style ,不选择表示不排序导入的包

    image-20240609224247317

  • 11 关闭idea自动更新

File-->setting--->Appearance-->System settings-->automatically check update ,不选择 (idea2022

File-->setting--->Appearance-->System settings-->updates--> check IDE updateS ,check for plugin updateS ,不选择;(idea2023)
File-->setting--->Appearance-->System settings-->autosave save files if the ide is idle for 15 seconds 选择;

image-20240609224544295

  • 12 导出配置设置

    File-->Manage IDE settings-->exprot settings 导出配置文件,到新的idea 导入配置文件,重启IDEA,复用配置

    image-20240609225012261

posted @ 2024-06-09 23:36  大树2  阅读(2)  评论(0编辑  收藏  举报