GitHub Copilot Certification — Question 10

How do you generate code suggestions with GitHub Copilot in the CLI?

Answer options

Correct answer: B

Explanation

The correct answer is B because it accurately describes the specific command ‘gh copilot suggest’ which initiates the suggestion process in the CLI. Option A incorrectly suggests using code comments to generate suggestions, which is not applicable in this context. Option C does not involve the correct command for suggestions, and option D describes a different process that does not lead to code suggestions.