Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
Dane Parchment
Treehouse Moderator 10,991 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.