Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kelvin Knighton
6,168 Pointssublime text 2, browser preview?
what's the easiest way to get the ball rolling with this? team treehouse recommends sublime in the videos and it's nice, but leaves out how to preview your code, a link would be helpful, i just wanna keep up with the vids, hassle free.
4 Answers
Xavier Duncan
Full Stack JavaScript Techdegree Student 6,138 PointsAs stated above, the best way is to save your HTML code as an index.html file, then open it within your respective Web Browser. Anytime you make a change to your code in Sublime Text and save it to your index.html file, you can view it by going to your browser and opening that file (or hit refresh if you already have it open). The page should load quickly and any changes you make should reflect immediately. Hope this helps!
James Barnett
39,199 PointsThat's what the Prevu Sublime Package is for
Joe Bissell
13,107 PointsI'm guessing you mean like in something such as Notepad++ where it has the option too 'Open with Firefox'. Sublime Text 2 doesn't come with this but you can set it up to do this.
I would tell you myself but I've only ever done it with Linux and I'd doubt that's what you're using. If you're using Windows, you might prefer Notepad ++ as it already comes with the option :)
It might look a little confusing at first but if you keep up then it should be fine, it explains it quite well. Alternatively, you could just open the file in whatever Browser you want then as you edit your code, save the file and refresh the Browser.
Kelvin Knighton
6,168 Pointsguys, thank you so much, i have tried these things, mostly all day yesterday, i have tried prevue, live reload and openinbrowser i promise you i am trying but apparently I'm missing something here, when i go into sublime openinbrower is installed and so is live reload, these things isn't working for me, i put in the effort, and I'm gonna keep trying, but i feel like these should have been a prerequisite to they should have shown a brief vid installing it.
Xavier Duncan
Full Stack JavaScript Techdegree Student 6,138 PointsWhat happens when you try to open your index.html file in your browser? Is it showing some type of error message, or something else? Post a screenshot if you can so we can get a better idea of what's going on.
melissa brown
4,670 Pointshi kelvin did you figure it out? ive spent most of today trying to get it to work and it wont. all the instructions online are so confusing.