Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

C# Variables in Razor Style Blocks Break Intellisense #1006

Open
NTaylorMullen opened this issue Feb 28, 2017 · 1 comment
Open

C# Variables in Razor Style Blocks Break Intellisense #1006

NTaylorMullen opened this issue Feb 28, 2017 · 1 comment

Comments

@NTaylorMullen
Copy link
Member

From @RandyBuchholz on February 15, 2017 12:7

Issue

In a Razor page, using a variable inside a <style> block breaks intellisense.

Example

@{ var border = "1px solid #000"; }

<style>
    .border-single { border: @border }
</style>

This will cause all intellisense to quit working within <style></style>

Note

I posted this before, but with the changes in the repo process I didn't want it to get lost. I think this is a critical usability bug.

Copied from original issue: aspnet/Razor#1004

@NTaylorMullen
Copy link
Member Author

From @Eilon on February 28, 2017 18:9

@NTaylorMullen does this seem like a Razor tooling thing that we own, or an issue in VS?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant