File templates

Keyboard Shortcuts

Learn about how one of the first things you do within the editing component of NetBeans is to create new files. NetBeans supports many different file formats, which can be created by selecting the File and then New File menu options. In this video, learn

- [Instructor] So one of the first things…that we do within the editing component of NetBeans is…to create new files.…Now NetBeans supports many different file formats…that can be created by selecting the file…and then the new file menu option.…So by going to like File, New File.…And if we chose for example here Java,…you see all the different file types that are associated…that we can choose.…And that applies to the other categories also.…

So these templates have information…that default when they're created…such as this one right here where…it has this common templates listed here,…and as you can see on line 10,…my name is printed out.…If you'd like to see where these templates are,…if we go to Tools and choose Templates,…you have them all categorized here.…So under Java, the first option is Java Class.…You can choose Open in Editor,…and then you will see the template structure itself.…

So let's go ahead and take a look at creating…a template for a new file type.…Let's assume that we want to alter the default class…

Resume Transcript Auto-Scroll

Author

Released

4/27/2018

Get started with NetBeans, the popular and open-source integrated development environment (IDE). This course provides a solid introduction to the capabilities of the NetBeans IDE, to help developers grasp how to use it for development. Throughout the course, instructor Reynald Adolphe helps you get acquainted with NetBeans by sharing helpful examples using Java. Learn about the NetBeans interface, creating templates and projects, and debugging code. Plus, Reynald discusses how to manage services, approach desktop and web development, and work with clean code.