DEV Community

Lem Dulfo
Lem Dulfo

Posted on

1 1

Real World Experience: Github Copilot Edits

Will AI replace developers? Maybe. But for now, it augments developer productivity.

For example, in our React Native codebase we were replacing occurrences of fontSize, fontWeight, and lineHeight with something from a pre-defined object, like textStyle.title, which contains all 3 attributes.

a git diff showing Github Copilot Edits at work

It was repetitive, so why not ask GitHub Copilot Edits to do it for us?

Here's how it works: you write the instructions in .github/copilot-instructions.md, then you "chat" with Copilot to do the thing. Simple.

Could it be done without the use of AI? Of course! We could have spent some time writing a script. The catch: you'll have to capture your thoughts as code.
(Okay, let's ignore the fact that I just described what a programmer is literally paid to do... 😅)

With AI, you write your thoughts down as natural language, and watch the magic happen.

Don't sleep on it, here's the documentation: https://code.visualstudio.com/docs/copilot/copilot-edits

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs