- 调整vscode gitblame
宽度、日期格式等都可以自定义,设置 - Gitlens - Blame: Format
settings.json 搜索两个配置项
"gitlens.blame.format": "${author|12?} ${date|12-}", "gitlens.blame.dateFormat": "YYYY-MM-DD",ctrl shift p blame 打开 代码中右键 file annotations toggle file blame 打开
- 使用快捷键 Shift + Alt + F(在 macOS 上是 Shift + Option + F)来格式化整个文件。