Preview your code in Sublime Text in a web browser, quickly & easily
I’m having students in my web development courses use Sublime Text as their editor. As a result, I’ve been digging deep into Sublime Text & writing up what I’ve learned on my personal website, which I use with some of my classes. This post is a pointer to some of those pages.
A student in one of my web development courses asked me a good question the other day: how can I easily open my HTML that I’m coding in Sublime Text in a web browser so I can see if it’s working? Sure, you can switch to the browser & use File > Open, & then just switch & reload after that. But I’ve been trying to impress upon my students the virtues of being lazy, & that’s just too much work!
After some thought, research, & testing, I wrote my answer up as “Set up Sublime Text to Preview Your Code in a Web Browser”. The setup might be a tiny bit complicated, but after that, it’s easy to use. Not to mention, the setup process teaches you more about how Sublime Text works, & that’s a good thing.