Code completion and suggestions with Copilot
After signing in, open a new file or an existing project in VS Code and start typing your code.
As you type, GitHub Copilot will begin suggesting completions or even whole chunks of code. It’s like having a friend who suggests, “Hey, try this next!”
Figure 13.12 – GitHub Copilot providing code suggestions
Let’s try it on the one-page profile website we have built throughout the book (https://github.com/PacktPublishing/GitHub-for-Next-Generation-Coders/blob/main/Chapter%2013/index.html) and ask Copilot to create the Get In Touch section for you. Open the Copilot chat using the Ctrl + Enter keyboard shortcut (which opens a separate panel showing 10 suggestions). You can use a prompt like I would like you to create new contact sections with google maps, address, phone, email, and contact form. Use similar coding like previous section and add
CSS styling.