如何在 Visual Studio 2022 中使用单个按键保存更改并进行构建?

发布于 2025-01-15 20:33:35 字数 299 浏览 5 评论 0原文

我已将 F1 映射到 Save.AllFiles。在 VS 2019 中,我曾经使用名为 BuildOnSave 的 VS 扩展,它将在保存时构建解决方案。没有适用于 VS 2022 的版本。

在 VS 2022 中,我有一个功能键需要保存,另一个功能键需要构建。然后,构建会调用热重载,这是我在 ASP.NET Core 应用程序中查看网页变化的目标。

我尝试使用 RunOnSave 扩展,但无法让它执行我想要的操作。

有没有一种方法可以只使用一次按键来保存和构建? 我有 R# 和 CodeRush(如果有办法在其中之一中做到这一点)。

I have F1 mapped to Save.AllFiles. In VS 2019 I used to use a VS extension called BuildOnSave which would build the solution upon saving. There's no version of it for VS 2022.

In VS 2022 I have one function key to save and another to build. The build then invokes the hot reload which is my goal to see the changes in the webpage in an ASP.NET Core app.

I tried using the RunOnSave extension and I couldn't get it to do what I wanted.

Is there a way to use just a single keystroke to save and build?
I have R# and CodeRush if there's a way to do this in one of them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏闹i 2025-01-22 20:33:35

只需构建解决方案 - 它会自动保存所有更改的文件。

Simply build the solution - it automatically saves all changed files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文