question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code not picking up HTML tags after Razor code

See original GitHub issue

Issue Type: Bug

I was told by the VS Code GitHub that this is an issue with this extension.

Take a look at the screenshot. You can see <li> tags with a razor action link and then the closing <li> tags after that are not being picked up afterwards.

vs-code_razor

I’m assuming this can easily be reproduced by creating a razor file and then creating an unordered list as shown in the screenshot. This is happening with @Html.ActionLink() as well as @RenderSection and looks like it happens anytime razor code is used at all.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NTaylorMullencommented, Dec 17, 2018

So do you have a suggestion to what I should do, @NTaylorMullen? I’ve got entire Razor views being rendered in plain colored text so it’s harder to follow. Is there a work around I can do? Another file type I should use? Or just go back to Visual Studio until the grammar gets reworked?

Totally understand the frustration. if you wanted you could change the Razor code to do all of the double quoted work inside of an @{...}, save to a variable and then render the variable. Otherwise, your best bet would be to hop over to Visual Studio until we’ve had a chance to address the grammar issues.

1reaction
timramonecommented, Nov 29, 2018

This is actually very sad news 😦 But thanks anyway 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode not auto completing HTML - Stack Overflow
VSCode not auto completing HTML · 1.you can use Auto Close Tag ,it can fullfill your requirement. – jialin wang · 2. 2.enter...
Read more >
Razor support in Visual Studio Code now in Preview - .NET Blog
Get started · Open Visual Studio Code · Select Terminal > New Terminal · In the new terminal run: dotnet new webapp -o...
Read more >
HTML Snippets, Drag & Drop and CSS IntelliSense isn't ...
Snippets for html tags do not work, pressing tab does nothing. · Unable to drag and drop css, javascript or image files to...
Read more >
VS Code Autocomplete html tags not working Solution
In this video I will show you how to enable emmet extentions for autocomplete of html tags.This video is for vs code autocomplete...
Read more >
ASP.NET Razor C# Syntax - W3Schools
Razor supports both C# (C sharp) and VB (Visual Basic). ... Seen from the browser, the HTML generated by server code is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found