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

C# Variables in Razor Style Blocks Break Intellisense #1006

Description

@NTaylorMullen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions