I think this happened after I use RDP. Every time I write code .
in the terminal it prompts:
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 uninstalling and installing VsCode but it didn't work. How can I stop seeing the prompt? How can I start VsCode with the environment variable DONT_PROMPT_WSL_INSTALL
?
EDIT: None of the solutions below have worked but I removed and installed code
and the code .
works without the y/N prompt. But there is still the DONT_PROMPT_WSL_INSTALL: command not found
at the top of the terminal.