visual-studio-code - 将启用/禁用扩展设置复制到另一个工作区

标签 visual-studio-code vscode-settings

想法:

我想清理我的 vscode 扩展,因为我正在使用许多不同的语言/文件类型,并且一次安装和启用所有这些扩展实在是太多了。

问题:

我为特定工作区禁用了一些扩展,并想将这些设置复制到另一个工作区,但 vscode 没有在 .vscode/settings.json 中存储有关启用/禁用扩展的信息.

问题:

  • 有没有办法将这些设置从一个工作区复制到另一个工作区?
  • 有没有更好的方法来处理大量的扩展?
  • 您能否推荐用于管理每个工作区或语言的扩展的工具/扩展

  • I assume vscode is not loading all extensions at once, but rather when needed. But some extensions display icons on the left or bottom of the window and overcrowd the "Show All Commands" list/search.

    最佳答案

    VS Code 将此信息存储在其内部而不是 .vscode文件夹,因此您无法在工作区之间复制此信息。有一个open issue确切地问你想要什么。

    但是,你有一个选择。使用 Profile Switcher扩展名。

    它的描述:

    This extension allows you to define a number of settings profiles that you can easily switch between. The original idea for this extension came from my desire to have an easy way for me to switch my VS Code to a setup that was better optimised for presenting (changed themes, increase font size, etc).



    这就是它处理扩展的方式:

    A profile isn't just the settings you have enabled, but also the extensions that were installed. This allows you to create different profiles for different styles of development (e.g. a React profile and a Vue profile, loading their respective extensions only).



    希望这有帮助

    关于visual-studio-code - 将启用/禁用扩展设置复制到另一个工作区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58765230/

    相关文章:

    vscode-settings - 如何禁用消息 'The Marketplace has extensions ...' 关闭

    visual-studio-code - 淡化 javascript intellisense

    java - 无法解析导入 - Visual Studio Code for Java

    visual-studio-code - 在 Visual Studio Code 中更改最近使用的列表中存储的项目数

    visual-studio-code - 如何将带有链接和格式的文本粘贴到像 Obsidian 这样的 VS Code 中?

    powershell - 防止集成终端自动打开

    visual-studio-code - VSCode 和 ES6 警告

    c++ - Visual Studio Code Intellisense 不显示 C++ 的函数文档

    aws-cloudformation - 我无法禁用 VS Code 中的 cloudformation 片段/建议

    node.js - Visual Studio Node : debug into Worker Threads (node 11)