记录以下IDEA的一些初始配置,聊作备忘。
记一次重装IDEA
配置
关闭自动更新
路径:File->Settings->Appearance & Behavior->System Settings->Updates
取消 Automatically check updates for 勾选

文件编码设置
路径:File>Settings>Editor>File Encodings
改为utf-8

取消默认打开上次项目
路径:File>Settings>Appearence & Behavior>System Settings
取消 Reopen last project on startup 勾选

自动导包和导包优化
路径:File>Settings>Eidtor>General>Auto Import
勾选 Add unambiguous imports on the fly 和 Optimize imports on the fly (for current project)

类注释模板
路径:File>Settings>Editor>File and Code Templates

/**
* @descriptaion: TODO
* @author ${USER}
* @date ${DATE} ${TIME}
*/
代码提示快捷键修改
idea的代码提示是ctrl + 空格,与win10系统自带快捷键冲突。本人习惯与 Cyclic Expand Word 循环往上选择单词) Alt + / 替换, 按个人习惯修改,尽量避免冲突
建议尽量保持idea的原生快捷键
路径:File>Settings>Keymap
搜索 basic 快速定位

提示忽略大小写
路径:File>Settings>Editor>General>Code Completion
取消 match case: 勾选

鼠标滚轮修改字体大小
路径:File>Settings>Editor>General
勾选 Change font size with Ctrl+Mouse Wheel

鼠标悬停提示
路径:File>Settings>Editor>General>Code Completion
如图所示:

FAQ
连接数据库时区问题
报错 :
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
解决:
添加
serverTimezone=UTCjdbc:mysql://localhost:3306/?useSSL=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC修改
Advanced
- 本文链接:http://www.raincither.top/record/idea-config/
- 版权声明:本博客所有文章除特别声明外,均默认采用 许可协议。


