如何在 Visual Studio 2022 中使用单个按键保存更改并进行构建?
我已将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需构建解决方案 - 它会自动保存所有更改的文件。
Simply build the solution - it automatically saves all changed files.