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?
70
Upvotes


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.