如何将预提交与 Visual Studio 代码集成?
How to integrate pre-commit with Visual Studio Code?
我需要 运行 对我的项目进行预提交测试,因此我为 VSCode 下载了以下扩展:
https://marketplace.visualstudio.com/items?itemName=MarkLarah.pre-commit-vscode
它说只需“在 VSCode 命令栏中输入 pre-commit run
”,它会给我:
PS C:\Users\xxx\Documents\VSCode\xxx> pre-commit run
pre-commit : The term 'pre-commit' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pre-commit run
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (pre-commit:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
显然我错过了将其集成到我的 Powershell 中的方法?
谢谢!
终端 window 与 visual studio 命令栏不同。
CTRL-SHIFT-P 将打开命令面板。
我需要 运行 对我的项目进行预提交测试,因此我为 VSCode 下载了以下扩展: https://marketplace.visualstudio.com/items?itemName=MarkLarah.pre-commit-vscode
它说只需“在 VSCode 命令栏中输入 pre-commit run
”,它会给我:
PS C:\Users\xxx\Documents\VSCode\xxx> pre-commit run
pre-commit : The term 'pre-commit' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pre-commit run
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (pre-commit:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
显然我错过了将其集成到我的 Powershell 中的方法?
谢谢!
终端 window 与 visual studio 命令栏不同。
CTRL-SHIFT-P 将打开命令面板。