【发布时间】:2022-07-25 15:11:26
【问题描述】:
我正在尝试使用 httprepl 在我的 ASP.NET 应用程序中测试端点。当我尝试运行 POST 请求时,我的命令提示符返回:
The default editor must be configured using the command `pref set editor.command.default "{commandLine}"`.
所以我用以下命令设置它:
pref set editor.command.default "C:\Users\User\AppData\Local\Programs\Microsoft VS Code\Code.exe"
然后我收到警告:
If your default editor is Visual Studio Code, you should set the default command arguments (`editor.command.default.arguments`) to include `-w` or `--wait` to ensure proper integration between HttpRepl and Visual Studio Code.
我现在不知道该怎么办。我试过了:
pref set editor.command.default.arguments "-w"
我不确定这是否有效,但是当我尝试重复该命令以将 VS Code 设置为我的默认编辑器时,我收到了相同的警告。我说对了吗?
【问题讨论】:
标签: c# asp.net visual-studio-code