#In codex cli new line How do you do that?

1 messages · Page 1 of 1 (latest)

ember burrow
#
  1. \n doesn't work

  2. Command + Enter doesn't work

  3. Control + Enter doesn't work

  4. Option + Enter doesn't work

  5. Shift + Enter doesn't work

  6. \ + Enter doesn't work

I'm running this in VS Code. What should I do?

arctic cargoBOT
#

Hi @ember burrow. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources do not explicitly mention how to insert a newline/multi-line input in the Codex CLI composer. However, there is one relevant tip that may help:

Use the external editor shortcut

When drafting a longer or multi-line prompt, you can open a full external editor from the Codex CLI composer by pressing Ctrl+G. This opens the editor defined by your VISUAL (or EDITOR) environment variable, where you can write multi-line content freely and then send it back to the composer. [Prompt editor]

Note: Since you're running the Codex IDE extension in VS Code (not the standalone Codex CLI terminal UI), the Ctrl+G shortcut is specific to the CLI's interactive TUI and may not apply in the VS Code sidebar context. The knowledge sources do not contain specific information about entering multi-line input in the VS Code extension's composer. For that, I'd recommend checking the Codex VS Code extension documentation or opening a support request with OpenAI directly.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: