Intelisense not working in Razor Pages (.cshtml)

Currently I’m using the visual studio 2022 community.

In one of my projects, everything is working, if I’m in a razor page and type “div” and then tab, it autocomplete to <div></div>.

In the other one it doesn’t works that way. Like the above exemple, if I type “div” and then tab, it just add a space after the text.

It happens with all page’s elements. Another exemple is: If I type “class” inside a div it should autocomplete to “class=’’”, but it also don’t work.

Someone know why it’s happening?