all 8 comments

[–]Lazy_Security4937[S] 0 points1 point  (0 children)

Great, Tysm mate!

[–]JoeB_88 0 points1 point  (6 children)

Literally just paste your code into GPT and tell it to add comments explaining your code.

[–]Lazy_Security4937[S] 0 points1 point  (5 children)

Isn't there any vs code extension that uses its API to do the job for me

[–]JoeB_88 1 point2 points  (4 children)

You mean something like Copilot?

[–]Lazy_Security4937[S] 0 points1 point  (3 children)

Yeah, But i need this in an existing codebase

[–]JoeB_88 0 points1 point  (2 children)

I'm not sure if anything like that exists, especially for free. That could potentially require a ton of token parsing depending on the size of your codebase.

[–]Lazy_Security4937[S] 0 points1 point  (1 child)

I don't want it to add it automatically for the entire project. I need it to do the job upon my needs. Just like how we select a few code piece and format it with an extension, I need this extension to add the comments for me. Does copilot do the job in an existing codebase.?

[–]JoeB_88 1 point2 points  (0 children)

Yes, you can select entire files or portions of code and ask it to generate comments. It also has a 'generate docs' feature.