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

Using sublime text

I'm downloaded sublime text 2 to follow along in front end development. To view the code I've written in a browser, do I need to purchase the license? I used the new workspace feature but every time I save and close it, all my work disappears.

4 Answers

Brent,

You do not need to purchase the license to use Sublime Text 2 in order to use any of its functionality. It is a free product, though if it ends up being your editor of choice, and once you have the means to do so, purchasing the license (at around $70USD at this point in time, I believe) is a way to give back and help keep the product maintained and going!

Erik

In order to view your code in-browser (regardless of what external text editor you're using), once you save your HTML file, do the following:

  1. Open your browser of choice
  2. Click Ctrl+O (on Windows) or Cmd+O (on Mac) - that's the letter "O", not the number zero
  3. Navigate to the HTML file that you want to view and double-click it

From there, your code will render and display in the browser, and you're good to go! Any time you make changes/updates to your files, make sure you Save them, then go back to their tab in your browser and hit refresh, and you'll see your changes (if appropriate).

Erik

Thanks Erik. That helped me out greatly. I appreciate it.

Absolutely!

Happy coding!

Erik

You can also open the directory (folder) where your code (index.html page) is saved... open the browser of your choice and drag and drop your index HTML page into browser page to open it in the browser. Or you can double click your index.html page in its directory and it should open in a browser.

Cool, so glad I asked because I was stumped. Thanks Tamsin.

No worries Brent, happy coding :)