Typing code (HTML especially) inside already written text and selecting a content assist option replaces the first word to the right.
For example, starting with:
Clicking between ">" and "S" and then typing something like "<a hr" brings up code assist, with "href" option. After selecting it, the code becomes:
<p><a href="" text</p>
See attached video with a screen capture.