The IDE can help you by inserting snippets of code, such as an empty do-while structure. If you have used the Content Assist feature, you may have already noticed this feature; you access it in the same way.
To use Code Templates, follow the procedure for using Content Assist, with the following exception