dotnet / dotnet/roslyn

Watch pane: Intellisense autocompletion ignores the starting underscore

Open
#84,393 1 comment 0 reactions 0 assignees View on GitHub
Area-IDE
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Watch-pane:-Intellisense-autocompletion-/10881633)._

---
[severity:It's more difficult to complete my work]
When you want to add to the watch pane a variable whose name starts with an underscore, Intellisense autocompletion totally ignore the initial underscore.
It's REALLY REALLY annoying when your convention is to have an underscore to all private fields.

In the screenshots below, I type an underscore, and the autocompletion list pops up with an empty area at the top (it didn't catch the _ ).
As I type the rest of the variable name (you can see me typing at the bottom), the autocompletion seems to only see the new letters I typed (at the top) and doesn't preferably show my variable starting with _

![image.png](https://aka.ms/dc/image?name=Bd58e70e1388b4d99abfa205d3e5fd91f638788082937019114_20250329-022452-image.png&tid=d58e70e1388b4d99abfa205d3e5fd91f638788082937019114)

![image.png](https://aka.ms/dc/image?name=Be631cd8b973f4182895d5b8b8632cfbc638788083121045530_20250329-022512-image.png&tid=e631cd8b973f4182895d5b8b8632cfbc638788083121045530)

Visual Studio 17.13.3

---
### Original Comments

#### Feedback Bot on 3/31/2025, 01:46 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

#### Feedback Bot on 7/11/2025, 07:39 AM:

We detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.

#### Deepak Rathore (ALLYIS INC) [MSFT] on 12/20/2025, 02:07 AM:

Thank you for your feedback!

Does this reproduce for the specific project? If so, what kind of project it is (C#/C++ Console App, WinForms, WPF, AspNet, etc…)? Could you please provide a sample solution that has this problem so that we can conduct further research? It would be very helpful if you could record a video for this scenario by using ScreenToGif. Thanks for your help!


Why do we ask for more info?

We try to reproduce all issues reported with the information provided in the description and comments. When we can’t reproduce the issue, we ask you for more information so we can resolve the issue as quickly and efficiently as possible.

In our guidelines, you can get tips on how to provide clear and simple reproducible steps.

#### Olivier Marcoux on 12/20/2025, 07:29 PM:

It happens in all kind of C# programs.

Here is an example:


namespace ConsoleApp1

{
internal class Program
{
static string _act = "First act", _chapter = "First chapter";

static void Main(string[] args)
{
System.Diagnostics.Debugger.Break();
}
}
}


Run it in Visual Studio, stop on the debugger breakpoint, and try to type _ or _act or _cha in the Watch pane.

Intellisense completion box will suggest all sort of things except the expected fields starting with _


(they can still be found if you scroll down the suggestion list a lot, but you would expect them near the top as you started typing an underscore)

#### Feedback Bot on 2/27/2026, 01:47 PM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a C# Console App using the sample fields and System.Diagnostics.Debugger.Break(), then inspect Watch pane completion behavior for _, _act, and _cha. Done means underscore-prefixed fields appear as relevant suggestions near the top while typing their names.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.