Home > other >  How to disable undesired HTML code completion for Visual Studio 2019?
How to disable undesired HTML code completion for Visual Studio 2019?

Time:01-31

It's a .cshtml file, this is my code:

<table>
    <thread>
        <tr></tr>
    </thread>
</table>

When I type the <tr and enter >, the intellisense tooltip doesn't show an option for the <tr> tag as shown below:

Screenshot of the code and tooltip I described above

No big deal. But when I do type >, it automatically "corrects" my code, turning it into:

enter image description here

Same thing happens if I type <tr and hit enter. The only way I can see now to type tags like this is to go back and change what I typed.

I have failed to find any relevant option in Visual Studio>Tools>Options. What can I do?

CodePudding user response:

You can try to uncheck Auto list members in Tools>Options>HTML>General. enter image description here

  •  Tags:  
  • Related