- Eclipse - Web Browsers
- Eclipse - Tips & Tricks
- Eclipse - Restart Option
- Eclipse - Shortcuts
- Eclipse - Code Templates
- Eclipse - Install Plugins
- Eclipse - Task Management
- Eclipse - Add Bookmarks
- Eclipse - Refactoring
- Eclipse - Navigation
- Eclipse - Search Menu
- Eclipse - Hover Help
- Eclipse - Quick Fix
- Eclipse - Content Assist
- Eclipse - Preferences
- Eclipse - Debugging Program
- Eclipse - Debug Configuration
- Eclipse - Build Project
- Eclipse - Reopen Project
- Eclipse - Close Project
- Eclipse - Create Jar Files
- Eclipse - Running Program
- Eclipse - Run Configuration
- Eclipse - Java Build Path
- Eclipse - Create XML File
- Eclipse - Create Java Interface
- Eclipse - Create Java Class
- Eclipse - Create Java Package
- Eclipse - Create Java Project
- Eclipse - Workspaces
- Eclipse - Perspectives
- Eclipse - Explore Views
- Eclipse - Explore Menus
- Eclipse - Explore Windows
- Eclipse - Installation
- Eclipse - Overview
- Eclipse - Home
Eclipse Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Ecppse - Code Templates
Using Code Templates
Code templates help reduce typing time by inserting code into the editor. Each code template is given a short pteral. Typing the pteral into the editor window and press Ctrl + Space brings up a dialog box from which a code template associated with that pteral can be selected.
Typing for
within the body of a method in the java editor window and cpcking Ctrl + space shows the code templates associated with for
.
Selecting for - iterate over array
inserts code for iterating through depArray which was declared earper in the method body.
Another useful code template pteral is sysout which can be used to insert the System.out.println() method call.
Modifying/Adding code templates
You can add new code templates using the Preferences dialog box. Bring up the Preferences dialog box by cpcking on the Windows menu and selecting the Preferences menu item. To locate the Templates page type Templates into the filter text box.
You can read more about the variables that can be used to customize the code that is inserted by reading the Ecppse help. To bring up the help window cpck on the Help menu and select Help Contents. In the search text box enter Java Editor Template Variables
. From the pst on the left hand side select Java Editor Template Variables
.