Color picker is not working in cshtml pages in Visual Studio 2022.

Mehmet KONUK 20 Reputation points
2023-03-15T10:25:20.02+00:00

Greetings,

I am using Visual Studio 2022 version 17.5.1 and I have created a ".Net Core" project. However, I am having an issue with the color picker not working in ".cshtml" pages (see Figure 1). The color picker works in CSS pages as shown in Figure 2. Could you please guide me on what I should do to make the color picker work in ".cshtml" pages as well?

Thank you in advance for your help.

Figure 1

Figure 2

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 25,626 Reputation points Microsoft Vendor
    2023-03-16T08:27:23.98+00:00

    Hi @Mehmet KONUK

    Welcome to Microsoft Q&A! 

    I created a ASP.NET Core Web App and could reproduce your issue. 

    Based on my testing, I found it is related to the setting: Tools > Options > Text Editor > Razor (ASP.NET Core) > General > Auto list members. But the setting is shown as grayed out. 

    So, I suppose it is designed like this in .cshtml file.

    If you have any suggestion about the feature, you can directly report it to product team by selecting “Help”  menu > Send Feedback

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful