Last week I wrote about switching to Windows from Mac for good, and a number of people wrote in to me from one of two buckets: • Why don’t you just code on Linux? • How can you code in a nice way on Windows? As a result, I thought I’d share the setup I’ve made for my modern front-end development workflow on Windows, along with the quirks and benefits of coding on a platform like Windows 10. The only reason coding directly in Windows is suddenly so feasible is thanks to Microsoft’s work on the Windows Linux Subsystem, which gives you a fully-fledged Ubuntu install right at the command line — and it works surprisingly well. Here's why the Windows Linux Subsystem is so good: it's the best of both worlds. At the end, you'll have a working web app running on your local machine. Install the.NET Core 2.1 SDK or later.; Create a web app project. Open a command shell, and enter the following command. Install Guide For System One Ladder RacksI can use Visual Studio Code, on Windows, with a task runner like Webpack running under Ubuntu, monitoring for changes on the same filesystem. No awkward file mounts or VM synchronization; this is real Linux. A simple example of how good this is: if you install Sublime Text 3 in Windows, it'll be accessible in your bash terminal if it's in your path. Msi. Just like a Mac or Linux box, I can type subl. in a folder, and it'll open. I can fire it up in Windows Explorer, too, because the file systems are shared. I could code on Linux, and certainly the Ubuntu desktop has come a long way from the old days, but dual-booting to Linux seems annoying to me, and I don’t want to have to configure two operating systems. If I can use the Windows desktop, play games, do day-to-day work and code in one place, I sure as hell want to and Windows 10 is actually pretty damn nice. Getting started First up, make sure you have — it takes a few minutes to enroll in the Insider Program, which lets you get free preview versions of Windows. The update should be generally available soon, but for now it’s better than the base release of Windows 10, and notably improves High-DPI displays for those using 4K monitors. The update adds a lot of major improvements to Bash on Windows, which allows file system watchers to work natively — an important requirement for me. Once you’re all set up, the first thing you want to do is enable Windows Developer mode. Head to the Settings app, then “Update & Security” and click “For developers” in the bar on the left. Quick Install Guide For Wd My PassportOn this screen, choose “Developer Mode” then accept the warning that pops up. It’ll take a few seconds to install the “Developer Mode” package, but after that, head back to the top level of the Settings app, and then “Apps & Features” and click “Programs and Features” on the right, then “Turn Windows features on or off” on the left (this part is particularly fiddly for no good reason, as far as I can tell).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |