Relative Content

Tag Archive for c#visual-studio

Strange single underline in visual studio

I’m working with C# in Visual Studio and I’m encountering an issue that I can’t seem to resolve. There’s a small single underline beneath one of the characters in my code, and no matter what I do, I can’t get rid of it. When I try to delete the character associated with the underline, instead of disappearing, the underline jumps forward to the previous character. It seems to follow the deletion rather than being removed. I’ve tried various ways to remove it but haven’t had any success. Could you help me figure out what’s causing this and how I can fix it?

Possible bug in MSVC Version 17.11.3 compiler pertaining to integer literal types?

I’m using VS2022 with the version 17.11.3 compiler on Win10 64-bit and my code is below followed by its output. My understanding is that the type of an integer literal expressed in decimal with no suffix is the first of types int, long, and long long that can accommodate the value. If that is the case, I believe the value of sizeof(2147483648) should be 8 and not 4, it and is indeed 8 if I switch to the clang compiler that comes with VS2022. If this is a bug, is it worth trying to report it to Microsoft?

Let ME decide which windows should be displayed and/or pinned

Visual Studio 2022 seems to fairly consistently decide for me which (what I’ll call ‘debugging support’) windows should be displayed, which windows should disappear, which windows should be pinned by default, etc… For what it’s worth, I’m refering here to windows like the ‘Output’, ‘Immediate’, and ‘Call Stack’ windows…