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

General Discussion

Viewing work in browser using Sublime Text 2!

I've bought sublime text as everyone says it's a great text editor and I have to say it seems a big big pain for beginners. Right now I'm trying to set it all up and I'm struggling.

How do you set up a good system to view work in the browser quickly. I'm on windows and want to view my work in chrome.

Any tutorials you can point me or ideas on how to solve my problems?

Everything I see with sublime text is written on the basis that the reader has specialist knowledge. All I want to do is view in browser and I'm spending hours trying to find a solution.

Thanks for any help guys!

3 Answers

Hi Troy,

You would need to be a bit more specific here. Simply stating trying to view work in the browser doesn't work if you are trying to look at a server side language in it.

If it is purely HTML you just right click and change what it opens with or even in the URL field type in the direct path to it.

Mark

yes but surely a text editor that everyone says is the best has a better way to view code in the browser. Brackets doesn't cost a penny and has a button straight to the browser. Surely everyone using sublime isn't just typing url into browser. Otherwise that is pretty rubbish

Sure it does... a simple google search provided http://www.granneman.com/webdev/editors/sublime-text/set-up-sublime-text-to-preview-your-code-in-a-web-browser/ and https://github.com/adampresley/sublime-view-in-browser

There is no "specialist" knowledge needed here and you also don't need Method 2 or 3.

these are posts I have already found. And I can't for the life of me get view-in-browser. Or making my on built tool to work. Just can't get it to work at all.

I just tested on ST2 and ST3 both worked with basic install using Method 1.

You don't need to do Method 2.

Do you have Package Control for ST installed?

yes I have package control installed,

Thanks for your help by the way