Mastering GitHub Copilot: Tips and Tricks for Swift Developers

Here Are My Tips

Steven Curtis
6 min readMar 28, 2023
Photo by Richy Great on Unsplash

GitHub Copilot is a fun AI tool, albeit one that might see us all out of jobs as iOS developers in due course.

I’ve been using the tool for a hot minute, and have got a few tips that can help you get the most out of it.

Let us dive right in!

Comments

GitHub Copilot understands comments written in natural English and uses them to generate accurate suggestions. If you provide a description about what you wish to accomplish, Copilot will help you out with autocomplete suggestions. Of course you’ll want to tailor those suggestions in order to make sure they function as you’d wish but AI can’t completely write your code for you. Yet.

You might also be given options of which code to accept.

Something like the following when you roll the mouse over the cursor will appear.

Here I’ve Three options.

Accept, Accept Word and the ellipsis. The first two? Self explanatory. Often you’ll want to go with the tab suggestion.

Hint: if you click the … ellipsis you can also tell GiHub Copilot to leave this toolbar there.

Specific Tips

--

--