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

Java Managing Project Files

How to use the HTML trick for HTML in atom but for java

So when you are writing an HTML script there is some prerequisite you need tot type e.g DOCTYPE etc. In an atom, there is a trick where you type in HTML on the first line and all of those appear on the screen. In java, there are also some prerequisites you need to put in such as the main, etc. Is there any trick in atom that I can use for this.

1 Answer

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,075 Points

The shortcuts you are referring to are often called snippets. They are pre-made lines of code that are generated up typing in specific text and then hitting enter/tab or the specified snippet shortcut key. The html one is actually part of an engine called EMMET, that handles html shortcuts. Atom does this in other languages through the snippets we mentioned earlier.

You can create your own snippets from Scratch (not too difficult) here is the documentation.

Or you can install snippets from other users on the atom package site here.

here is one for java.

Thank you very much.