❔ What is this and How do I shut it off
What is this red squares stuff. It gets in my way.
Can I shut it off??
19 Replies
Looks like either Copilot or IntelliSense wants to show you a better way to write this string
I'd just accept the changes
The problem is, I'm not done and I can't see what I am trying to edit. How do I turn it off?
Tools -> Options -> Intellicode googlee said but i wouldnt recommend turning it off completely
Whose bright idea was this. All I am trying to do is delete lines but I can't dsee my highlighting or where my cursor is. I check out the options. But, this is BAD UX experience.
Accept the suggestion, then delete the lines ¯\_(ツ)_/¯
There's no reason to have all that concatenation anyway
I do it for readability so it don't scroll all the way to the right. Its a long line
its probably suggesting raw string literal here (https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/raw-string-literal)
which would add a lot more readability if u apply it
Unchecking Intellisdense works, but, that means I have to tuen this on and iff when I need to edit a list like this.
Assuming you're not stuck on some old version of .NET
VS 2022 .net 4.8
oof
its a language feature, i think that should be possible there as well
(and a "simple" one at that so there shouldnt be a need for some polyfill package)
...just press escape?
wouldnt it just re-suggest it after some minor modification?
Did that, but it just happens again if I try to edit it. Turning off options works, but after I am done I have to turn it back on. What a pain. VB doesn't do this.
I get version error with this. Do just using "enter" key for new lines doesn't work with my version
in ur csproj file u probably have to bump the language version
<LangVersion>11</LangVersion>
needs to be in there somewhereThanks for every ones help... I changed the version and all looks much better.
there is just one thing i do not know about/didnt check yet: what is used for the line break, CRLF or LF is usually it, my assumption is that its using the what ever ur file uses
its clearly not something at runtime as it has to be in there at compile time
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.