Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OuroborosNew to Visual Studio Code? Get it now.
Ouroboros

Ouroboros

zhanghaoxuan

|
23 installs
| (0) | Free
sort files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ouroboros - 文件排序

功能

依据文件后缀名和文件名称来对所有 group 的文件进行排序, 没有文件后缀的默认后缀为 "ZZZ" .
首先按照后缀排序, 后缀相同的排在一起, 内部按照文件名排序.

使用

安装插件后, ctrl + shift + p 输入 obs

效果

obs.gif

版本控制

0.0.4: 反转插入顺序, 将 hpp 等头文件插入 cpp 文件之后, 而不是 cpp 插入 hpp 后面
0.0.3: 添加 c, c++ 头文件和源文件排序后挨在一起的效果
0.0.2: 更新 readme
0.0.1: 勉强能用

bug

目前使用的 vscode api 不符合预期, 很多后缀不是一个 editor, 比如打开 gif 文件, 导致返回 undefined, 尝试更换其他api

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft