I’ve been leaning pretty heavily on ChatGPT to write an app using a couple of frameworks I’ve never used before. I’m treating it as an experiment, I know I’m not learning as much as I could, but it’s been fun.

I find myself writing

I have file2.js

(paste code here)

And file2.js

(paste code here)

How do I do the thing?

Is there a vscode plugin which has access to all the files in my workspace (or all the open files in my editor) so that I can just refer to them by filename?

How do I do the thing in file1.js and file2.js

That’s nirvana, if that’s not a thing, then I’m open to hearimg about other good options.

  • Frostcoins
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    Hmm I don’t think that exists yet. The closest thing is GitHub copilot. Which costs 10 euro a month.

    There’s these official Vscode extensions

    GitHub copilot nightly=autofill(most important one honestly)

    GitHub copilot chat=gpt inside Vscode with context of open files I think? But not entire project . And GitHub copilot labs=handy for thinks like writing docs and adding typescript types

  • terrapin@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I second the GitHub copilot opinion. It’s the closest thing to what you’re looking for, and it’s also powered by ChatGPT. I’ve been using it for a few months just to try it out and it’s increased my productivity by maybe 20%. I use it mostly with node.js/typescript in vs code and it works great. I also have it integrated with visual studio for some .NET core apps but it doesn’t work as well for c#. It makes it easy to write the simple and repetitive functions so you can focus more on the business logic.

    • ThreeHalflings@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Thanks, yeah, I have it a shot, it’s absolutely magical! Not gonna change my life, but it feels like I’m in a scifi movie from the 80s :)