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

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Set up an HTML Document

G Roberts
G Roberts
3,342 Points

Hi there, How do I save my code in brackets code editor without having to copyandpaste back it every time? Thank you.

Hi there, How do I save my code in brackets code editor without having to copyandpaste back it every time? When I close brackets I copy the code from my page source and paste it into brackets and this is time consuming. I have a feeling there is a way around it.

Thank you in advance Rookie Gavin

Hi if I'm understanding you correctly you want to be able to basically keybind a set of html that you reuse frequently? This is usually called a snippet functionality in most reliable Editors so you'd just need to Google instructions for creating a snippet in your specific editor.

If you want something simple like an HTML starter code the following works in Visual Studio Code and Sublime, not 100% sure in Brackets but you can give it a go..

  • create a new workspace
  • save your workspace as an html file (filename.html)
  • type `html' then immediately tab

Your workspace should fill with simple html starter code.

If not, try to add an extension that does it for you, similar to this one - http://brackets.dnbard.com/extension/le717.html-skeleton.

Good luck

2 Answers

Ethan Roode
Ethan Roode
6,675 Points

For Brackets.io just make sure you've opened your project folder (the root folder that contains your index.html, stylesheet.css, etc...) and you can you cmd/ctrl+s to save every time you use Brackets it should reopen. If not then you have an issue. Just make sure when using brackets you open your root folder of your project.

Example: .../Documents/Project1/index.html/...

  • Project1 would be the folder I am opening in brackets
Michael Cockrell
PLUS
Michael Cockrell
Courses Plus Student 542 Points

or click on File, then Save (or Save All if you have changed more than one document).