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 code with sublime

hey does anyone know an easy way to view code in a browser using sublime? having so much trouble trying to find a way to do it. doesnt seem to be any simple instructions out there.

3 Answers

Garrett Sanderson
Garrett Sanderson
12,735 Points

Hi Melissa,

I take it that you want to view the code you have written using sublime in the browser. To do this you just have to open your html file with whichever browser you want to use.

To do this in sublime you can just right click the file you want to view and click on "Open in Browser". If you can't see your files in Sublime you might have to install the enhancedsidebar plugin via package control: https://packagecontrol.io/

Hope this helps.

it works thank you so much !!!

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Melissa;

In my Sublime Text 2 (PC & Ubuntu Linux versions) I installed a package called View In Browser, which allows one to... you guessed it, view the code from the current tab in a browser. If you are unsure as to how to add packages to Sublime, for PC it is:

  1. Preferences
  2. Package Control
  3. Package Control: Install Package
  4. search for package name and click on the package to install

That should allow you then to utilize the package, in this case View in Browser. To adjust/change settings under Preferences there should be a Package Settings option which lists all of your installed packages.

Hope it helps and happy coding,

Ken