Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

When I type "code ." in Ubuntu, I get a message saying to use VCS with WSL, I need to install the VSC in Windows and Uninstall the Linux version

$
0
0

I'm somewhat new to Linux, but new to the integration between VSC and WSL. I'm taking a C++ course, where I installed all the compilers into Ubuntu, and then ran the .deb file to install the Linux version of VSC in Ubuntu. Now every time I enter "code ." I get the message below.

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.

I tried using alias code='DONT_PROMPT_WSL_INSTALL=1 code', but now running code . doesn't do anything, not even give me the message mentioned before. If I close and reopen Ubuntu, then type code ., I then get that original message again.

I also tried $ echo >>"$HOME/.bashrc" "DONT_PROMPT_WSL_INSTALL=No_Prompt_please", but this did nothing for me either.

I read another thread on this site that said to remove and install code, but I have no idea how to do that.

I am now stuck at a wall with this course, and would really appreciate some direction.Thank you in advance.


Viewing all articles
Browse latest Browse all 2795

Trending Articles