Can I write comments inside the Xtend template? (for example, to quickly comment out an IF statement or whatever)
Yes it is possible. Use the toggle-comment action in Eclipse, or ««« manually enter the prefix like in««« my comment in a template
«««
««« my comment in a template