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

ccCommitFiles

guoCc

|
5 installs
| (0) | Free
多功能导出文件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

描述

适用范围

- all

使用

功能一:

1. 快捷键ctrl+shift+p 输入ccCommitFiles,没找到的话输入ccCommitFiles.extract
2. 选择需要把文件提取到的指定目录
3. 选择需要提取文件的commit提交id 比如“ee9b1556c29”
4. 插件将会自动提取,并复制源文件在项目中的相对路径

功能二:

1. 在编辑器中开你的文件
2. 然后唤醒插件,跟着提示步骤即可导出文件

预期结果

快速导出文件的VSCode插件

核心

功能一:

1. 插件脚本执行git diff-tree --no-commit-id --name-only -r 'hash' 命令行输出该提交修改过的文件的树(相对文件路径)
2. 使用换行符切割命令行输出的结果转为数组,循环路径,git show 'hash':'filePath' 命令行输出文件内容,并将结果写入文件
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft