To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL.

1 개요[ | ]

root@wsl:~/ws/hello# code .
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the `code` command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N] y
To no longer see this prompt, start Visual Studio Code with the environment variable DONT_PROMPT_WSL_INSTALL defined.
You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please add the argument `--no-sandbox` and specify an alternate user data directory using the `--user-data-dir` argument.
root@wsl:~/ws/hello# apt purge code
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libsecret-1-0 libsecret-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  code*
0 upgraded, 0 newly installed, 1 to remove and 169 not upgraded.
After this operation, 394 MB disk space will be freed.
Do you want to continue? [Y/n]
...
(Reading database ... 95965 files and directories currently installed.)
Removing code (1.76.2-1678817801) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
(Reading database ... 94535 files and directories currently installed.)
Purging configuration files for code (1.76.2-1678817801) ...
root@wsl:~/ws/hello# code .
-bash: /usr/bin/code: No such file or directory

2 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}