gh config set editor 'code --wait'

Category: GitHub CLI

gh config set editor 'code --wait'

Set VS Code as the editor for gh (e.g. PR body editing)

Sets VS Code as the editor that gh opens for things like editing PR bodies.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.