So I can basically do `code .` from inside bash and it will open VS Code in the linux sub-system folder? That's amazing!
So I can basically do `code .` from inside bash and it will open VS Code in the linux sub-system folder? That's amazing!
It has worked well for me to make a symlink under ~ to /mnt/c/Users/myaccount/, and that way anything under that symlinked folder is visible to WSL and Windows programs.
If you just want to type `code <filespec>` (without the .exe), then you can create an alias that resolves to code.exe.
Same for Notepad, etc. :)
Hey Rich, can you (or colleagues) tell us any news on console? I get the vibe from Michael Niksa back in August [1] [2] there's a big changes happening that will fix readline-type stuff and I'd love to know more about this - I use ConEmu / Win32 SSH on Windows and it, was well as bash, seem to occasionally suffer from terminal-corrupting weirdnesses.
I'd love to know more about the causes, the fixes, whether the fixes will make it into Creators Update, etc.
[1] https://github.com/Microsoft/BashOnWindows/issues/111#issuec...
[2] https://github.com/Microsoft/BashOnWindows/issues/111#issuec...
It's important to remember that the Console was one of the first things Cutler & team implemented when they started NT itself, and it's been updated, patched, partially-enhanced and modified quite a few times in the last 30+ years! ;)
We're in the process of modularizing much of the Console's internals, replacing particularly archaic parts with shiny new modern C++ collections, etc., removing unnecessary cruft, etc. ... while trying not to break anyone!
Much of the work we're doing right now will result in Maximus5 & the Console2 / ConsoleZ / etc. teams having to jump through far fewer hoops to implement decent terminals on Windows.
And while we're doing this, we're also enhancing the console to support *NIX VT sequences, adding 24-bit color, etc., working with several other teams around Microsoft who need Console changes to make their things work.
This week, we are planning & building features for the NEXT OS release!
As you can imagine, it takes considerable effort and care to do this and we've got a great team with Michael, Paul, Mike2 & Austin beavering away as I type.
Actually; small lie - Niksa is on vacation this week re-charging his fuel cells before I chain him to his desk again ;)
We'll be writing a series of blog posts in the coming weeks, summarizing what's new in Bash & Console in Creators Update, and will have some cool stuff to show off at Build 2017!
I'll also be speaking at OSCON 2017 in Austin (same week as Build!!), so stop-by if you're in TX and want to chat about Bash / Console :)
https://conferences.oreilly.com/oscon/oscon-tx/public/schedu...
Regarding future work, are there any plans to make the emulated Linux filesystem usable in the rest of Windows e.g. via a drive mapping?
We are keen to smooth out some of the filesystem interop challenges. There's a reason we've not yet removed the Beta label ;)
For example, using windows explorer to edit linux sub-system files would be a big no-no.
However, it's fine to modify files stored in your Windows filesystem from within Bash, so if you were in `/mnt/c/dev/project/` and launched `code.exe ./`, Code would open the current (Windows-accessible) folder.
There is some weirdness with the recommended file system sharing. Git on WSL sees files as modified after they have been checked in from Windows. It means I either use Git from the IDE or from the terminal, but not both.
Excited to see how this continues to improve.
What you're seeing with git is likely to be caused by line ending differences. You've probably got "Convert line endings to Windows" configured in your Git on Windows, but "Checkout Linux line endings on Linux". Either way, both should match otherwise all your files will look different because ... well ... they will be ;)
EDIT: Actually, since I am doing that as well, I just tested it. And yes, it all works!
HTH