r/VisualStudio • u/RustyPL • Apr 14 '26
Visual Studio 2022 What are these comments?
Trying to learn pointers and this is what the auto finnish gives me. Also does anyone else write comments for the sake of not going mad?
67
Upvotes


13
u/SessionIndependent17 Apr 14 '26
AI slop from ... Cortana? If whatever tf MS calls their AI helper
11
u/shotgunbruin Apr 14 '26
It's Copilot. It's always Copilot. There's lots of posts similar to this one in this subreddit because it's a common behavior of it.
Visual Studio has pushed Intellisense, which suggests code completions based on a map of your code, to the background and centered Copilot, which uses AI to guess at your functions and insert comments it lifted from the code of other developers after sending it your code.
That's what this is. AI read some developer's comment in a code file that has some resemblance to yours and suggested that line, lifted straight from their code. It will also suggest profanity-laden comments and fictitious methods or libraries.
It's yet another example of AI being half-baked and forced into literally every single product whether it's actually useful or not.
3
u/cybekRT Apr 14 '26
I love copying such comments or other Ai answers with misspelling to search engines to find the source of them, always good to know where from this model was teached.
2
u/solace_01 Apr 14 '26
you gotta turn that off if your goal is to learn anything lol
2
u/Zkojin Apr 17 '26
That first one is a banger tho, giga based AI
1
u/tsbattenberg Apr 15 '26
Man half the fun of programming is writing the angry comments. I definitely don't want this...
1
u/Juff-Ma Apr 15 '26
I'm gonna be real. I love writing snarky comments and VisualStudio has assisted me greatly recently
1
u/realmauer01 Apr 16 '26
I mean, comments are on the point. Not much wasted space on what it does, fully explained why it does what it does.
1
u/Competitive_Lime2170 Apr 24 '26
y
1
u/Mickenfox Apr 28 '26
Fyi I reposted the first one because it was hilarious.
https://www.reddit.com/r/programminghorror/comments/1sxzur4/copilot_knows_how_to_deal_with_constructors/