gpt4 book ai didi

How to turn off auto build in vs code?(如何关闭VS代码中的自动构建?)

转载 作者:bug小助手 更新时间:2023-10-24 17:54:29 31 4
gpt4 key购买 nike



How to turn off auto build in vs code?
enter image description here

如何关闭VS代码中的自动构建?


i use Competitive Programming Helper extension.
and c++.

我使用竞争性编程助手扩展。和c++。


i tried find in setting to off it, find in youtube and another but didn't find solution.

我试着在设置中找到它,在YouTube和另一个网站上找到,但没有找到解决方案。


更多回答

Link to the referred extension for those like me who don't know it.

链接到引用的扩展,对于像我这样不知道它的人。

You can look through the extension's settings if you want to investigate yourself whether it provides any to change this. Consider asking also as a GitHub issue ticket / discussion item.

你可以通过扩展的设置,如果你想调查自己是否提供任何改变这一点。考虑将询问也作为GitHub问题单/讨论项目。

@b264 Please add the screenshot of something being built (likely in Terminals or Output panel). Otherwise it's hard to say.

@b264请添加正在构建的内容的屏幕截图(可能在终端或输出面板中)。否则就很难说了。

@Dimava this isn't my question, but I am curious how to turn off ALL building

@Dimava这不是我的问题,但我很好奇如何关闭所有的建筑

@b264 There are extensions that build for you on open (like Vite), task settings to "run task on folder open", and maybe some other settings . The proper answer would be, probably, "Use Bisect Extentions to find which extension does that, and either uninstall it or fix its settings" (use Restart w/o exts before that to make sure it's caused by ext, otherwise check tasks in .vscode or .vscode-workspace )

@b264有一些在打开时为你构建的扩展(如Vite),任务设置为“打开文件夹时运行任务”,也许还有一些其他设置。正确的答案可能是“使用二等分扩展来找出哪个扩展可以做到这一点,然后卸载它或修复它的设置”(在此之前使用不带EXT的重启来确保它是由EXT引起的,否则在.vscode或.vscode-workspace中检查任务)

优秀答案推荐

TL;DR It doesn't look like it's possible without modifying the source.

如果不修改源代码,这看起来是不可能的。


Luckily this is an open-source plug-in, and you can view the source. If you look at the config.ts file here (https://github.com/agrawal-d/cph/blob/7f2d2728fec88b0a0e707074f66eede7eb7048d3/src/config.ts#L45C25-L45C25) you'll see that there is indeed a config setting called skipCompile which defines a list of filename extensions for which it will SKIP auto-compile. The only value in the list at present is *.py which makes sense.

幸运的是,这是一个开源插件,您可以查看源代码。如果您查看这里的(https://github.com/agrawal-d/cph/blob/7f2d2728fec88b0a0e707074f66eede7eb7048d3/src/config.ts#L45C25-L45C25).ts文件,您将看到确实有一个名为skipCompile的配置设置,它定义了将跳过自动编译的文件扩展名列表。列表中目前唯一的值是*.py,这是有意义的。


If you wanted to, I'm sure you could take this plug-in, modify this line in the config.ts, and rebuild the source into a new dist/extension.js file you can install.

如果您愿意,我相信您可以使用这个插件,修改config.ts中的这一行,并将源代码重新构建到一个可以安装的新dist/extsion.js文件中。


This setting could almost certainly be easily exposed as a configurable setting, AND you could provide a feature for future users!

几乎可以肯定,该设置可以很容易地公开为可配置的设置,并且您可以为将来的用户提供一个功能!


You can find the open-source project for this plug-in here: https://github.com/agrawal-d/cph

您可以在此处找到该插件的开源项目:https://github.com/agrawal-d/cph


更多回答

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