简体   繁体   中英

HTML Code snippets not working Visual Studio 2019

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?

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.

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

You can try other methods as mentioned in this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM