🗺️当前这篇博文地址:https://myoontyee.github.io/article/18239a06.html
⚠️警告:博客文章禁止一切形式的非授权非法转载!
⚠️Attention: All forms of unauthorized illegal reposts are prohibited !
创建时间:2022年4月28日19:18:45
最新更新:2022年4月30日12:34:30
Problem Description:Visual Studio Code Comment plugin recommended configuration combination, does it enable fast code jumping within VS Code + multi-level beautiful comments?
核心思路:
- 几个插件
- 快速跳转
Comment Anchors
- 代码注释分段
Comment Divider
- 代码Box注释
Box Comment
Comment Box
也行,就是感觉效果有待提高
- 快速跳转
- 按位置分
- 功能块头用
Box Comment
+Comment Anchors
注释并设定锚点 - 内容分段用
Comment Divider
- 功能块头用
插件介绍
实现
-
现希望实现区分功能头与内容分段的代码注释,如
- 代码块名字是
Function 1
- 代码块的锚点是
ANCHOR: Function 1
- 代码块有3段
- 功能段1
Abi.1
- 功能段2
Abi.2
- 功能段3
Abi.3
- 功能段1
- 代码块名字是
-
注释实现
- 功能块头用
Box Comment
- 锚点用
Comment Anchors
- 内容分段用
Comment Divider
- 功能块头用
-
实现步骤如下几图
- 前面代码行数是个示例,不用管
- 按快捷键Ctrl+Shift+;
- 功能块
Start
用Shift+Alt+X - 功能块
End
用Alt+X - 得到下下图
- 前面代码行数是个示例,不用管
-
实现效果如下
1 | /* |
- 包含的锚点在这
- 锚点插件是
Comment Anchors
- 锚点插件是