# Improving GitHub Copilot C++ completions in Visual Studio

DevFeed: [Improving GitHub Copilot C++ completions in Visual Studio](<https://devfeed.tech/articles/improving-github-copilot-c-completions-in-visual-studio-72912.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2024-10-25-improving-github-copilot-c-completions-in-visual-studio>)

Author: Allison

Published: 2024-10-25T20:02:30Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [resharper](<https://devfeed.tech/topics/resharper.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [visual-studio](<https://devfeed.tech/tags/visual-studio.md>), [visual-studio-code](<https://devfeed.tech/tags/visual-studio-code.md>)

## AI overview

GitHub Copilot now considers related files, including headers that are not open in the editor, when gathering context for C++ completions. The change aims to reduce hallucinations and improve suggestion relevance, and is available to subscribers using Visual Studio 2022 version 17.12 or later.

## Source excerpt

To reduce hallucinations, improve contextually-relevant suggestions, and provide a consistent C++ experience across Visual Studio and Visual Studio Code, related files such as headers are now automatically considered when gathering...