JetBrains IntelliJ IDEA、DataGrip 实用设置
Created by wangjing on 02/25/2022 18:37 Fri
关键词:
idea 设置 中文,注释,方法分隔符,字体,颜色,代码提示,代码助手,拼写检查,标签多行,代码折叠,头部注释,作者,日期,署名
DataDrip 时区错乱问题 clickhouse
JetBrains 旗下软件通用设置:
主题
File | Settings | Editor | Color Scheme
全局字体
File | Settings | Editor | Font
注释字体颜色
File | Settings | Editor | Color Scheme | Language Defaults
// hex:77C8CB
方法分隔符
File | Settings | Editor | General | Appearance
代码提示忽略大小写
FileFile | Settings | Editor | General | Code Completion | Match case
取消代码块绿框
File | Settings | Editor | Color Scheme | Database | Conlole | Effects
标签多行显示
File | Settings | Editor | General | Editor Tabs
界面语言中文
File | Settings | Plugins | MarkPlace | Chinese (Simplified) Language Pack / 中文语言包
JetBrains IntelliJ IDEA
maven路径设置
File | Settings | Build, Execution, Deployment | Build Tools | Maven
代码宽度
File | Settings | 编辑器 | 代码样式 |右边距(列)
取消拼写检查
File | Settings | Editor | Color Scheme | General | typo
取消代码折叠
File | Settings | Editor | General | Code Folding
取消勾选以下两项:
- one-line methods
- “Closures” (annoymous classes implementing one method, before Java 8)
编译器版本配置
File | Settings | Build, Execution, Deployment | Compiler | Java Compiler
IDE配置文件
C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.2\bin\idea64.exe.vmoptions
自动头部注释
File | Settings | Editor | File and Code Templates
style a
/**
* Created by ${USER} on ${DATE} ${TIME} ${DAY_NAME_SHORT}
*/
效果示例:
/**
* Created by Wangjing on 02/25/2022 18:37 Fri
*/
style b
/**
* @Author ${USER}
* @Date ${DATE} ${TIME} ${DAY_NAME_SHORT}
* @Version 1.0
*/
效果示例:
/**
* @Author Wangjing
* @Date 02/25/2022 18:34 Fri
* @Version 1.0
*/
JetBrains DataGrip
时区问题(重点踩坑)
File | DataSource... | Advanced | 选中需要修改的库
name | Value |
---|---|
use_time_zone | Beijng |
use_uncompressed_cache | true |