💡 複習
一
下有哪些步驟
1. 開啟空
白
的
文
字檔(File > NewText File )
2. 整理素材檔案,直接拖曳到Copilot
面
板中
3. 跟Copilot聊天(
目
前僅限英
文
):「Please use
these
fi
les to produce a landing page index.html」
How to writebetter prompts for GitHub Copilot
• 3個最佳實務
1. Set the stage with a high-level goal. 🖼
2. Make your ask simple and speci
fi
c.Aim to receive a
short output from GitHub Copilot. 🗨
3. Give GitHub Copilot an example or two. ✍
38.
How to writebetter prompts for GitHub Copilot
• 外加3個
小
技巧
1. Experiment with your prompts. ➡ 多嘗試、多測試,調
整你的最佳prompt提
示
詞
2. Keep a couple of relevant tabs open. ➡ 多開幾
頁
程式
碼,讓Copilot可以找到更多它能夠參考的資料
3. Use good coding practices. ➡ Copilot會學你的寫程式
慣例,所以盡量使
用
名稱有意義的函式和變數