Set the editor used by gh when editing text.
Section: Getting Started
Set preferred editor
bash
bash
gh config set editor "code --wait"Explanation
Set the editor used by gh when editing text.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Getting Started