How to write Stack Overflow answers using GitHub Copilot

preview_player
Показать описание

A brief explanation:
I started with the empty Java class, and then I pasted the original question as a comment (Given a String s= "This is a sample sentence" I want to produce the string "This is a sample". Is there a neat way to achieve this?). After that, every completion, shown in grey, is suggested by Copilot. I either accept these completions as is or try to write a few characters to prompt a different completion.
Рекомендации по теме
Комментарии
Автор

1:05–1:34 Haha the struggle of you trying to get Copilot to get the This_is_a_sample_sentence test right

cherryblossom
join shbcf.ru