Editing code and files on Windows Subsystem for Linux on Windows 10

Video is ready, Click Here to View ×

Editing your code and files on Windows Subsystem for Linux on Windows 10 – As well as setting up Ruby on Rails, Node, and C++


  1. All of this seems so pointless when you can just boot into a native Linux environment and not run Windows at ALL. Why did they even bother? Why not just make Windows run well? Linux already runs well.

  2. Scott, this is EXACTLY what I was looking for – trying to understand how to use VSCode and edit files on Windows 10, but running them on Linux. Thank you sir! I don't know what Microsoft is paying you, but they should DOUBLE it.

  3. Do chroot jails work with this method? I have some super old fucking OpenSuse toolchains that I would love to target with the power of my workstation for builds… if that would work… ho-lee-shit.

  4. Have everything setup like you – GETTING ERROR when using 'rails generate controller'
    alanflint@XXXXXX:/mnt/c/Users/Alan/rails_code/Sites/myrubyblog$ rails generate controller home index
    /home/alanflint/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/app_loader.rb:40: warning: Insecure world writable dir /home/alanflint/.rbenv/versions in PATH, mode 040777
    and just has a blinking cursor waiting for me to type

  5. I feel sooooooo stupid.
    I have long wondered how to edit source files in windows (visual studio) used in linux (python) and it never for once even crossed my mind to create the linux project in my visual studio project folder. Now it is common sense. Linux can see windows but windows should not see linux.
    I might even create a shallower file path on my data drive just for linux projects I want to code with windows tools.
    Thanks Scott.

  6. indeed, the key difference is to use mnt. if you don't, bash won't see anything not created by itself (permission issues). you could `touch file` then modify it in Windows, but that creates horrible artifacts.

  7. thanks for your effort, but still have problem with bash, if u start to install packages at 50% or less it will freeze, when u want to close the shell it will freeze, if u restart your pc, and want to run bash it will never work

Leave a Reply

Your email address will not be published.