Introduction

Too much people ask for productivity using code templates of NetBeans Editor, please read this tip to achieve the same.

Details

Go to Tools/Options (Windows and Linux) or NetBens/Preferences (MacOS), in the window go to Editor Section, in code templates.

Creating Template

To make your environment most productive, you can to create new templates. You can click on "New" button in templates window as shown below:

After pressing tryjdbc and space, the code in the "expanded text" area of the above image will be written automatically.

Where you put the " |" character, the cursor will appear in that position.