Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VS Copilot - Seeing is believing

VS Copilot - Seeing is believing

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 0 Posters 78 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mircea NeacsuM Offline
    Mircea NeacsuM Offline
    Mircea Neacsu
    wrote last edited by
    #1

    One day I may expand this in an article or tip, but for the moment, just wanted to share my first experience with Copilot in Visual Studio.

    Context: writing a MTTQ client in C++ almost from scratch.

    One line summary: Wow!

    After logging in, Copilot started producing ghosted text suggestions, sometimes one line at a time, sometimes full blocks. For the most part it was very accurate and didn't go ahead of itself hallucinating code. It clearly knew a bit about the protocol itself suggesting for instance that a publish method should have a flags parameter. On the other hand, when validating a received PUBLISH packet, it fumbled the flags validation code.

    At times it was scaringly accurate: I had my packet sending code spread in various parts of the code with associated critical section locks and error checking. This morning I Visual Studio with the intention of grouping said code in one method. I just pressed "enter" in the header file and Copilot suggested erc send_packet (Packet& pkt);. I felt like it was reading my mind.

    In general reminds me of a time when I was doing pair programming with a junior programmer: I had to look over his shoulder and take control from time to time, but it saves so much time on repetitive code sections that is definitely worth it.

    1 Reply Last reply
    1
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups