IDE优化
本文最后更新于:2025年4月29日 下午
IDEA
设置 Maven 国内阿里镜像
- 右键项目,选择 Maven→Open ‘settings.xml’
- 在 settings.xml 文件中增加阿里云镜像地址,代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
</mirrors>
</settings>
- 在 pom.xml 文件上右击,选择 Maven→Reimport
tips
- maven 的的全局配置默认路径是 C:\Users[当前用户].m2\settings.xml
- maven 的配置路径可以在 settings 中的 maven 中修改
设置类注释
例如下面的样式:
/**
* @Author: wjwang
* @description:
* @date: 2023-09-08 21:54
*/
进入IDEA
在 File => Settings => Editor => File and Code Templates,选择includes
,加入一下内容:
/**
* @author ${USER}
* @description ${description}
* @date ${DATE} ${HOUR}:${MINUTE}:${SECOND}
*/
VScode
导入设置
管理 → 设置 → 打开设置
{
"files.autoSave": "afterDelay",
"files.autoGuessEncoding": true,
"workbench.list.smoothScrolling": true,
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "smooth",
"editor.mouseWheelZoom": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.guides.bracketPairs": true,
//"editor.bracketPairColorization.enabled": true, (此设置vscode在较新版本已默认开启)
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.acceptSuggestionOnEnter": "smart",
"editor.suggestSelection": "recentlyUsed",
"window.dialogStyle": "custom",
"debug.showBreakpointsInOverviewRuler": true,
"editor.fontSize": 18,
"liveServer.settings.donotShowInfoMsg": true,
"workbench.iconTheme": "vscode-icons",
"explorer.confirmDelete": false,
"workbench.startupEditor": "none"
}
IDE优化
https://junyyds.top/2023/06/26/IDE优化/