Sometimes in code completion, there is only one line which is editable. Other lines are locked, which means you cannot edit them.
Lines which are locked are usually highlighted.
In the above example only line 8 is editable. You can press enter on line 8 and add new lines.