gpt4 book ai didi

visual-studio-code - 我什么时候想在 WSL2 :Ubuntu vs VsCode Windows? 中安装 VSCode 扩展

转载 作者:行者123 更新时间:2023-12-04 13:34:26 29 4
gpt4 key购买 nike

我的大部分编码都在 WSL2:Ubuntu 中。我通常在 WSL2:Ubuntu 中打开一个终端,切换到项目目录,然后通过键入 code . 来启动 VSCode。
当我寻找扩展时,它们出现 (?) 安装在 Windows VSCode 本身中,然后一段时间后,VSCode 会建议在 WSL:Ubuntu 中安装扩展

  • 我什么时候应该在 WSL:Ubuntu 中安装扩展?
  • 除了将扩展安装到 VSCode Windows 中之外,在 WSL:Ubuntu 中安装扩展还能获得什么?
  • 安装在 VSCode Windows 中的哪些 VSCode 扩展不适用于 WSL2:Ubuntu 项目?

  • 如果我理解下图,那么任何对代码、片段、格式化程序、intellisense/kite/tabnine 进行操作的扩展都需要安装到 WSL 中,但是根据缩进级别更改文本颜色的扩展呢,或者放置有关成本的提示进口的?那些是“UI 扩展”还是“工作区扩展”?
    enter image description here
    这里的答案是否适用于所有远程 vscode 开发或特别适用于在 WSL2 下开发?
    我需要了解什么关于 VSCode Windows 和 VSCode WSL2:Ubuntu 才能理解这个?

    最佳答案

    根据official docs对此,

    If you install an extension from the Extensions view, it will automatically be installed in the correct location. While extensions that affect the VS Code UI, like themes and snippets, are installed locally, most extensions will reside inside WSL.

    关于visual-studio-code - 我什么时候想在 WSL2 :Ubuntu vs VsCode Windows? 中安装 VSCode 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63046753/

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