gpt4 book ai didi

java - 任何人都可以做到这一点吗?如何将 VS-Code 多个扩展从一种语言特定扩展切换到另一种语言特定扩展?

转载 作者:行者123 更新时间:2023-12-01 16:21:56 25 4
gpt4 key购买 nike

有时我必须在 VS Code 上使用不同的编程语言。但问题是我必须禁用以前语言中使用的所有以前的扩展。这使得 VS-Code 工作繁重例如,如果我正在使用 PHP,并且必须转向 python 或 javascript,那么我必须禁用所有扩展,然后逐个启用。

vs-code 中有什么方法可以让我可以对扩展进行分组并根据需要启用该组。

最佳答案

从 vscode 1.69 Insiders 开始,请参阅 https://stackoverflow.com/a/72875272/836330对于“设置配置文件”,它允许您为不同的项目拥有不同的扩展集。另外https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_69.md#settings-profiles

那里有一个专门针对不同语言设置不同环境的示例 -

A Settings Profile comprises of settings, keyboard shortcuts,extensions, state, tasks, and snippets. You can customize VS Code fordifferent development environments like Web, Machine Learning, or formultiple programming language classrooms like Python, Java or forpersonal modes like Work or Demo and save them as Settings Profiles.You can open multiple workspaces (folders) with different profilessimultaneously based on the projects you are working on or theclassroom you are attending to or when you are presenting.

<小时/>

[以前,建议使用上面的内容。]

这是同一个问题:https://github.com/microsoft/vscode/issues/98093 (不同编程环境的独特设置)

那里有一个关于使用 Settings Sync 的有趣评论。扩展(不是内置设置同步)来为不同的编程环境(不一定是不同的机器)创建不同的“配置文件” - 包括不同的扩展集。

并参见Profile Switcher .

关于java - 任何人都可以做到这一点吗?如何将 VS-Code 多个扩展从一种语言特定扩展切换到另一种语言特定扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62247748/

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