IDEA相关配置介绍
1、IDEA 配置svn
提交svn报错:1.1、下载:https://www.visualsvn.com/downloads/
1.2、修改IDEA配置指向的路径:
2、IDEA 设置 Tab 键为 4 个空格
Scheme 选择 Project ,在下面把取消勾选 Use tab character
3、IDEA 设置编码格式为 UTF-8
4、IDEA 设置换行符为 Unix 编码格式
5、IDEA 设置文件或代码模板
类注释模板 | 脚本文件模板
/**
*
* @author Created by 思伟 on ${DATE}
*/
Lua脚本文件模板 -
Lua File Header
Lua File Header
---
---
--- Created by 思伟 on ${DATE}
---
6、解决IDEA中快捷键Alt+Enter不能使用
7、IDEA自动生成serialVersionUID
8、IDEA多个model下有同名的class,debug进错了
9、IDEA推荐插件合集
10、IDEA自定义get、set模板生成注释(使用Lombok更简便
)
快捷键 ➡️
Alt + Insert
IDEA安装Lombok及使用详解
- Getter模板
添加一个名为Getter With Comments
(随便取)
/**
* Gets the value of $field.name.
*
* @return the value of $field.name
*/
#if($field.modifierStatic)
static ##
#end
$field.type ##
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))))
#if ($field.boolean && $field.primitive)
is##
#else
get##
#end
${name}() {
return $field.name;
}
- Setter模板
添加一个名为Setter WIth Comments
(随便取)
/**
* Sets the value of $field.name.
*
* @param $field.name $field.name
*/
#set($paramName = $helper.getParamName($field, $project))
#if($field.modifierStatic)
static ##
#end
void set$StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))($field.type $paramName) {
#if ($field.name == $paramName)
#if (!$field.modifierStatic)
this.##
#else
$classname.##
#end
#end
$field.name = $paramName;
}
11、IDEA设置Maven的JDK编译环境
最好都选择
Use JAVA_HOME
12、IDEA设置开启注解编译支持(Lombok等插件)
勾选即可