You can put caret where you need it, and hit Code ...
# announcements
o
You can put caret where you need it, and hit Code | Generate (see shortcut in menu)