Skip to content

Instantly share code, notes, and snippets.

@imeredith
Last active January 25, 2019 02:21
Show Gist options
  • Save imeredith/82cd59524ad8d603c898583577266211 to your computer and use it in GitHub Desktop.
Save imeredith/82cd59524ad8d603c898583577266211 to your computer and use it in GitHub Desktop.
Tips for development in WSL

Dev tools

  • Other than editors, install everything needed in WSL. It's easier.
  • Piping to windows programs does work, just remember to add .exe
    • echo 1234 | clip.exe
  • Editors can't see anything in Linux FS, keep all code in /mnt/c

Symlinks

  • Enable windows developer mode
    • Symlinks will be navigable in windows - e.g if node_modules has symlinks code completion works
  • Symlinks do not work between ~/ and /mnt/c
  • Add --link-folder /mnt/c//.yarn/links to ~/.yarnrc to make yarn links work.

Networking

  • 0.0.0.0:8080 will not work, use localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment