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

CSS CSS Foundations Getting Started with CSS Adding CSS to a Page

Austin Hunkin
Austin Hunkin
881 Points

How do I view the web browser in the sublime text editor?

I downloaded the sublime text editor but can't seem to find a way to view the webpage I am coding in html and css. There isn't a view button like there is in the workspace I used in the previous lesson.

This is probably a stupid question to ask but I want to figure it out ASAP so I can move on with the CSS lessons

Adrianne Padua
Adrianne Padua
7,506 Points

I know this is late, but I own Sublime Text 3. It looks like with the latest update, "view in browser" is by default installed, so no need to install a third-party package. Anyway, on Windows, I use this:

View in Chrome - CTRL + ALT + C View in Firefox - CTRL + ALT + F

And others: View in Safari - CTRL + ALT + S View in Internet Explorer (if needed) - CTRL + ALT + I

For all other browsers, I think you'd have to edit the package file somewhere.

4 Answers

Austin,

If your using a third party editor you'll likely need to do something like double click the actual index.html file in your folder or right click and -view with- Internet Explorer or Google Chrome for example.

Hope this helps.

Eric Vandenberg
Eric Vandenberg
9,095 Points

I had trouble with this also but I finally got it working. Just follow these instructions: https://github.com/adampresley/sublime-view-in-browser/wiki/Getting-Started

You first install Package Control (which you should have anyway) and then you install the 'view in browser' option

Let us know if this works! It looks like there are options to open in different browsers with keyboard shortcuts, dopefresh wah wah.

Dante Snow
Dante Snow
3,176 Points

Hey, Thanks for the info!, I can confirm that its working for me although only with Firefox

You can also just drag your index.html file (or whatever file you want to see) onto your browser. That works on most browsers.

In Chrome, you can also just go to 'File', 'Open File' and open your index.html file. A browser tab will open with a site you can view.