Visual studio code 导出WSL上Visual Studio代码的扩展列表
我在Windows 10上激活了WSL2(Windows子系统für Linux)(Alpine和Ubuntu作为发行版),我在VScode中使用远程WSL。在我的“普通”VScode上,我可以执行Visual studio code 导出WSL上Visual Studio代码的扩展列表,visual-studio-code,windows-subsystem-for-linux,wsl-2,Visual Studio Code,Windows Subsystem For Linux,Wsl 2,我在Windows 10上激活了WSL2(Windows子系统für Linux)(Alpine和Ubuntu作为发行版),我在VScode中使用远程WSL。在我的“普通”VScode上,我可以执行code--list extensions来获取我的所有扩展 如何在WSL远程终端(zsh,bash)上实现这一点?VS代码通过安装在Linux机器上的服务器组件与WSL2通信,该组件目前显然不支持--list extensions标志 下面是在Windows中键入的同一命令,code--list e
code--list extensions
来获取我的所有扩展
如何在WSL远程终端(zsh,bash)上实现这一点?VS代码通过安装在Linux机器上的服务器组件与WSL2通信,该组件目前显然不支持
--list extensions
标志
下面是在Windows中键入的同一命令,code--list extensions
与WSL之间的输出差异
关于WSL
code 1.49.0
Usage: code [options][paths...]
To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')
Options
-d --diff <file> <file> Compare two files with each other.
-a --add <folder> Add folder(s) to the last active window.
-g --goto <file:line[:character]> Open a file at the path on the specified line and
character position.
-n --new-window Force to open a new window.
-r --reuse-window Force to open a file or folder in an already
opened window.
--folder-uri <uri> Opens a window with given folder uri(s)
--file-uri <uri> Opens a window with given file uri(s)
-w --wait Wait for the files to be closed before returning.
--locale <locale> The locale to use (e.g. en-US or zh-TW).
-h --help Print usage.
Extensions Management
--enable-proposed-api <extension-id> Enables proposed API features for extensions.
Can receive one or more extension
IDs to enable individually.
Troubleshooting
-v --version Print version.
--verbose Print verbose output (implies --wait).
--log <level> Log level to use. Default is 'info'. Allowed
values are 'critical', 'error',
'warn', 'info', 'debug', 'trace', 'off'.
-s --status Print process usage and diagnostics information.
--prof-startup Run CPU profiler during startup
--disable-extensions Disable all installed extensions.
--disable-extension <extension-id> Disable an extension.
--sync <on> <off> Turn sync on or off
--inspect-extensions <port> Allow debugging and profiling of extensions.
Check the developer tools for the
connection URI.
--inspect-brk-extensions <port> Allow debugging and profiling of extensions with
the extension host being paused
after start. Check the developer tools for the
connection URI.
--disable-gpu Disable GPU hardware acceleration.
--max-memory Max memory size for a window (in Mbytes).
code 1.49.0
用法:代码[选项][路径…]
要从stdin读取,请附加“-”(例如“ps aux|grep code|code-”)
选择权
-d—比较两个文件之间的差异。
-a--将文件夹添加到最后一个活动窗口。
-g—转到指定行上的路径打开文件,然后
角色位置。
-n——新窗口强制打开新窗口。
-r—重用window Force以打开已存在文件中的文件或文件夹
打开窗户。
--文件夹uri打开具有给定文件夹uri的窗口
--文件uri打开具有给定文件uri的窗口
-w—等待文件关闭后再返回。
--区域设置要使用的区域设置(例如en US或zh TW)。
-h——帮助打印使用。
扩展管理
--启用建议的api为扩展启用建议的api功能。
可以接收一个或多个分机
要单独启用的ID。
故障排除
-v--版本打印版本。
--详细打印详细输出(暗示--wait)。
--要使用的日志级别。默认值为“info”。允许
值为“关键”、“错误”,
“警告”、“信息”、“调试”、“跟踪”、“关闭”。
-s—状态打印进程使用情况和诊断信息。
--prof startup在启动期间运行CPU探查器
--禁用扩展禁用所有已安装的扩展。
--禁用扩展禁用扩展。
--同步打开或关闭同步
--inspect extensions允许调试和分析扩展。
检查开发人员工具中的
连接URI。
--inspect brk extensions允许使用调试和分析扩展
正在暂停的扩展主机
开始后。检查开发人员工具中的
连接URI。
--禁用gpu禁用gpu硬件加速。
--最大内存窗口的最大内存大小(以MB为单位)。
在窗户上
Visual Studio Code 1.49.0
Usage: code.exe [options][paths...]
To read output from another program, append '-' (e.g. 'echo Hello World | code.exe -')
Options
-d --diff <file> <file> Compare two files with each other.
-a --add <folder> Add folder(s) to the last active window.
-g --goto <file:line[:character]> Open a file at the path on the specified
line and character position.
-n --new-window Force to open a new window.
-r --reuse-window Force to open a file or folder in an
already opened window.
--folder-uri <uri> Opens a window with given folder uri(s)
--file-uri <uri> Opens a window with given file uri(s)
-w --wait Wait for the files to be closed before
returning.
--locale <locale> The locale to use (e.g. en-US or zh-TW).
--user-data-dir <dir> Specifies the directory that user data is
kept in. Can be used to open multiple
distinct instances of Code.
-h --help Print usage.
Extensions Management
--extensions-dir <dir>
Set the root path for extensions.
--list-extensions
List the installed extensions.
--show-versions
Show versions of installed extensions, when using --list-extension.
--category
Filters installed extensions by provided category, when using --list-extension.
--install-extension <extension-id[@version] | path-to-vsix>
Installs or updates the extension. Use `--force` argument to avoid prompts. The identifier of an extension is always `${publisher}.${name}`. To install a specific version provide `@${version}`. For example: 'vscode.csharp@1.2.3'.
--uninstall-extension <extension-id>
Uninstalls an extension.
--enable-proposed-api <extension-id>
Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
Troubleshooting
-v --version Print version.
--verbose Print verbose output (implies --wait).
--log <level> Log level to use. Default is 'info'.
Allowed values are 'critical', 'error',
'warn', 'info', 'debug', 'trace', 'off'.
-s --status Print process usage and diagnostics
information.
--prof-startup Run CPU profiler during startup
--disable-extensions Disable all installed extensions.
--disable-extension <extension-id> Disable an extension.
--sync <on> <off> Turn sync on or off
--inspect-extensions <port> Allow debugging and profiling of
extensions. Check the developer tools for
the connection URI.
--inspect-brk-extensions <port> Allow debugging and profiling of
extensions with the extension host being
paused after start. Check the developer
tools for the connection URI.
--disable-gpu Disable GPU hardware acceleration.
--max-memory Max memory size for a window (in Mbytes).
--telemetry Shows all telemetry events which VS code
collects.
Visual Studio代码1.49.0
用法:code.exe[选项][路径…]
要读取另一个程序的输出,请附加“-”(例如“echo Hello World | code.exe-”)
选择权
-d—比较两个文件之间的差异。
-a--将文件夹添加到最后一个活动窗口。
-g—转到指定路径上的路径打开文件
行和字符位置。
-n——新窗口强制打开新窗口。
-r—重用窗口强制打开文件中的文件或文件夹
已经打开了窗口。
--文件夹uri打开具有给定文件夹uri的窗口
--文件uri打开具有给定文件uri的窗口
-w—等待文件关闭,然后重试
返回。
--区域设置要使用的区域设置(例如en US或zh TW)。
--用户数据目录指定用户数据所在的目录
留在家里。可用于打开多个
代码的不同实例。
-h——帮助打印使用。
扩展管理
--扩展目录
设置扩展的根路径。
--列表扩展
列出已安装的扩展。
--显示版本
使用--list扩展时,显示已安装扩展的版本。
--类别
使用--list extension时,按提供的类别筛选已安装的扩展。
--安装扩展插件
安装或更新扩展。使用“---force”参数避免提示。扩展的标识符始终为`${publisher}.${name}`。要安装特定版本,请提供“@${version}”。例如:“vscode。csharp@1.2.3'.
--卸载扩展
卸载扩展。
--启用建议的api
为扩展启用建议的API功能。可以接收一个或多个扩展ID以单独启用。
故障排除
-v--版本打印版本。
--详细打印详细输出(暗示--wait)。
--要使用的日志级别。默认值为“info”。
允许的值为“严重”、“错误”,
“警告”、“信息”、“调试”、“跟踪”、“关闭”。
-s—状态打印过程使用和诊断
信息。
--prof startup在启动期间运行CPU探查器
--禁用扩展禁用所有已安装的扩展。
--禁用扩展禁用扩展。
--同步打开或关闭同步
--inspect扩展允许调试和分析
扩展。检查开发人员工具中的
连接URI。
--inspect brk extensions允许调试和分析
扩展主机为的扩展
停顿