Visual Studio Code - 在构建前保存文件 [英] Visual Studio Code - Save file before build

查看:50
本文介绍了Visual Studio Code - 在构建前保存文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在构建前自动保存所有更改的文件?按 Ctrl+s 然后按 Ctrl+Shift+b 一直.

Is it possible to automatically save all changed files before build? It's a bit tedious to press Ctrl+s and then Ctrl+Shift+b all the time.

推荐答案

这个功能现在好像已经实现了:
转到:文件 >首选项设置
在搜索设置"中在顶部的框中,输入保存".
将列出多个匹配项.
向下滚动至:任务:运行前保存并选择:运行前始​​终保存所有编辑器
在离开之前,请花点时间查看一些其他特定于语言的选项,看看是否对其中的任何选项感兴趣.

This feature seems to have been implemented now:
Goto: File > Preferences > Settings
In "Search Settings" box at top, enter "Save".
Multiple matches will be listed.
Scroll down to: Task: Save Before Run and select: Always save all editors before running
Before leaving, take a moment to review some of the other language-specific options to see if any of them is of interest.

这篇关于Visual Studio Code - 在构建前保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆