1

I have been tried to search for the settings in VS2019 about the HTML code snippets/Auto-Completion in Razor Pages/Views. It was working earlier however it is not working now.

Example:

supposed I type the following line of code in Index.cshtml:-

div.table.table-sm.table-stripped.table-bordered "press tab"

It should display the following structure:-

<div class="table table-sm table-stripped table-border></div>

I have only Resharper Ultimate installed on my machine as an extension. Which settings should I be looking at?

2
  • 1
    Check if it's really not working first. Select line, open command pallet, select Emmet:Expand abbrivation. If that works, check if this option also comes when typing. If not, you can set your own shortcut do activate this. Commented Aug 4, 2020 at 12:04
  • I have tried many steps, but it was working with VS2019 without any additional custom snippets. It stops the moment when I added some tagHelpers. There may be some settings that might have affected to lose this auto-completion feature. I have gone through whole settings could not find it, I cannot reset visual studio default settings as I have customized my settings and can't lose it. Therefore there should a way to fix it. Commented Aug 4, 2020 at 13:02

1 Answer 1

1

I had the same issue. Resolved by repairing vs2019 and install ZenCoding extension.

  1. Open Visual Studio Installer.
  2. On the version you wish to repair, click More.
  3. Click Repair.
  4. Open your project in vs2019>Extensions>Manage Extensions>search and download ZenCoding.
  5. Restart vs2019.

P.S: All of my downloaded extensions and templates were deleted after repairing.

You can try other methods as mentioned in this link

Sign up to request clarification or add additional context in comments.

3 Comments

It does not make sense to fix a VS issue via installation of a third party extension. In addition, the link you provided does not reference snippet issues or configuration.
@Rashad what i suggested was how i fixed my issue when snippet was not working. It is not fair to just down vote answers. You could edit my reply to make it helpful for others. Anyways, what is your suggestion?
Zencoding extension worked for me thx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.