gpt4 book ai didi

visual-studio-code - 在 VS 代码中保存时美化?

转载 作者:行者123 更新时间:2023-12-02 17:18:28 33 4
gpt4 key购买 nike

我刚刚安装了 beautify extension对于 vs 代码

我希望每次保存文件时都能美化我的代码,但不知道如何以这种方式配置它。

上面写着

Beautify on save will be enabled when "editor.formatOnSave" is true.

但我不知道该把它放在哪里,因为我在任何文件中都找不到默认选项。

我正在尝试切换到 VS code 并解决问题。

最佳答案

对于 Windows,单击"file"-> 首选项 -> 设置。然后搜索editor.formatOnSave,并输入“true”而不是“false”

对于 Mac,单击“代码”(屏幕左上角,"file"、“编辑”和“查看”左侧)-> 首选项 -> 设置 -> 在中输入术语“editor.formatOnSave”页面顶部的搜索设置框。单击勾号将其标记为 true。

enter image description here

关于visual-studio-code - 在 VS 代码中保存时美化?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49771855/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com