工欲善其事必先利其器

IDEA版本 2020.1.1

idea 常用设置

  1. 进入设置:File | Settings
  2. 省电模式(该模式下代码提示等功能不会开启):File | Power Save Mode
  3. 项目编码格式:File | Settings | Editor | File Encodings
  4. 改变某个文件的编码格式:打开文件 -> 右下角编码格式切换
  5. 设置主题:File | Settings | Appearance & Behavior | Appearance
  6. 设置字体、字号、行距:File | Settings | Editor | Font
  7. 设置(Ctrl+Mouse Wheel调节)编辑区字体大小:File | Settings | Editor | General -> 勾选(Change fot size with Ctrl+Mouse Wheel)
  8. 设置注释颜色:File | Settings | Editor | Color Scheme | Language Defaults -> Comments
  9. 文件生成时注释:File | Settings | Editor | File and Code Templates
  10. 设置鼠标悬浮码上显示提示:File | Settings | Editor | Code Editing -> 勾选(Show quick documentation on mouse move)
  11. 手动引入包(快捷键):Alt + Enter
  12. 自动导包和优化多余的包: File | Settings | Editor | General | Auto Import -> 勾选(Add unambiguous … 和 Optimize imports …)
  13. 同一包下,导入类或静态方法个数达到阈值,合并为 *:File | Settings | Editor | Code Style | Java -> Imports tab页 -> Class count… 和 Names count…
  14. 显示行号、方法间分隔符、不可见字符:File | Settings | Editor | General | Appearance -> 勾选(Show line numbers、Show method separators、Show whitespaces)
  15. 忽略大小写显示提示信息: File | Settings | Editor | General | Code Completion -> 不选(Match case)
  16. 仅第一个字符区分大小写给提示信息: File | Settings | Editor | General | Code
  17. 设置table键等于4个空格:File | Settings | Editor | Code Style | Java -> Tabs and Indents -> 不选(User tab Character)
  18. 设置git执行文件路径:File | Settings | Version Control | Git
  19. 设置换行符Unix编码格式:File | Settings | Editor | Code Style(原因:git使用的Unix编码,虽然会自动转换,但是转换也可能出问题) Completion -> 勾选(Match case 和 First letter only)
  20. 多个类显示时,不隐藏tab标签:File | Settings | Editor | General | Editor Tabs -> Show tabs in one row(是否显示在一行)、Tab limit(最多可显示的tab数)
  21. 自动编译:File | Settings | Build, Execution, Deployment | Compiler -> 勾选(Build project atto… 和 Compile independent …)
  22. 垂直或水平展示:打开文件,tab标签上右键可选(功能:可同时展示多个文件)
  23. 生成序列化版本号:File | Settings | Editor | Inspections -> 搜索serialVersionUID(选择***接口的选项): 鼠标悬浮在已实现***接口的类名上 Alt + Enter
  24. 方法显示参数名称提示:File | Settings | Editor | General | Code Completion -> 勾选(show parameter name…)

注: 一些功能选择,有区分是对idea设置还是对当前project的设置:DefaultProject
eg:
idea的常用设置(从设置开始提高编程效率)

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-10-22
  • 2022-03-04
  • 2021-12-05
  • 2021-12-09
猜你喜欢
  • 2021-09-24
  • 2021-07-28
  • 2021-11-18
  • 2022-12-23
  • 2021-06-07
  • 2021-12-02
  • 2021-12-27
相关资源
相似解决方案