My Windows 10 coding setup

So, not too long ago, I was asked by multiple people how I code on Windows, and I tried searching online for workflows that makes sense to someone coming from Linux, and found nothing, so here I am writing it myself.


I write my code in Windowsland, and I use the binaries in Bash/Ubuntu land to run/compile the code I write. This way, I can continue using familiar editors like Visual Studio Code, while still keeping to the Bash shell to do most of the work.

The Setup

In my ~/ file, I have a line that resembles this.

alias code="cd /mnt/c/Users/username/Documents/code"

The Bash/Ubuntu land /mnt/c/Users/username/Documents/code path maps to my user’s Windowsland C:\Users\username\Documents\code, which for all intents and purposes is the code folder in Documents.

Whenever I start coding, I start by typing code into the Bash shell, which brings me to where all my code is. I then git clone my code into that directory on Bash/Ubuntu land, and modify the same code in Windows using my preferred editor, and I test/push the code back in the Bash shell again.

Hope this helps whoever is coming from Linux/Apple to Windows.

How do you set up your dev environment on windows? Post it in the comments below!


I am a Senior Engineer with Singapore Power, and have a passion for security and distributed systems. Prior to this, I have worked in companies including PayPal,, and Nugit. I also headed GeekcampSG from 2012 to 2014, and am currently focusing my free time on social empowerment initiatives including IAmTalentedSG, and CollaborateSG. When not doing work, or any of these stuff, I can be found cafe hopping/taking photos/trekking.

Leave a Reply

Your email address will not be published. Required fields are marked *