Created
July 21, 2019 14:40
-
-
Save DavidLiedle/1576f3850b9489b3a65c0bda84c1891f to your computer and use it in GitHub Desktop.
A shell script to run inside of WSL on Windows, to open code-insiders VSCode within WSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
################################################################################ | |
# win: open in windows from WSL | |
# | |
# usage: win ~/directory/name/here | |
# | |
mkdir -p ~/.logs | |
if [ -d $1 ]; then | |
cd $1 | |
code-insiders $1 &> ~/.logs/win.log & | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save as
~/bin/win
when~/bin
is on your WSL Linux instance PATH. Invoke with, e.g.win ~/my_project
to open VSCode Insider Edition in a live session from within WSL. Tested with WSL2 inside Ubuntu 18.04.