"Extend" will insert text at the end. "Infill" will replace all highlighted regions / insert text at the cursor positions. (Use Ctrl / Command to highlight multiple regions, or place multiple cursors.)
Examples: Python JavaScript Jupyter StackOverflow Metadata Conditioning Metadata Prediction Docstring->Code