2

I have the Linux subsystem enabled on my Windows 10 laptop, and I'm using Debian I was able to use Cygwin as VS Code's integrated terminal, with the help of this guide:

VS Code - Cygwin as Integrated Terminal

But I'm using OpenCV in some of my projects, and installing it on Cygwin is pretty tricky AFAIK. Can I use Debian's terminal as VS Code's integrated terminal? Thanks

1 Answer 1

3

If you enabled Bash On Windows (WSL console) you should, with this config, be able to have the bash as VScode terminal:

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe",

3
  • I tried but it couldn't find OpenCV. Is this bash.exe created immediately after enabling WSL? Does it have anything to do with Debian/Ubuntu/openSUSE apps in Microsoft Store? Commented Jun 21, 2018 at 10:00
  • - You might need to restart your computer to finalize the install of WSL. - Yes, but this config works with Ubuntu for me. The exe might be of a different name for Debian or SUSE.
    – ChrisR
    Commented Jun 21, 2018 at 10:12
  • I figured it out. I forgot I also had Ubuntu as default and that doesn't have OpenCV. I switched to Debian with wslconfig and it worked. Thanks. Commented Jun 21, 2018 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.