Como corrigir o erro do visual studio não abrir o modo designer do meu formulário.

Jacob Paixao Tonga COCOJA 0 Reputation points
2024-04-08T16:12:33.4866667+00:00

Capturar

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

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2024-04-09T03:12:24.1733333+00:00

    Hello @Jacob Paixao Tonga COCOJA ,

    Welcome to Microsoft Q&A forum.

    Please kindly edit your question into English, so that we can better help you:)

    Looks like the error message is "There is no editor available for … Make sure the application for the file type (.cs) is installed".

    I would firstly suggest you try to repair and update Visual Studio, by opening VS Installer => Update/More => Repair.

    If it doesn’t work, try following:

    1. Open that .cs file in notepad, prepare a new empty .cs file, copy and paste the code into that new empty .cs file, save it. Replace the original .cs file, check if this works.
    2. Using some editors for example Notepad++ to check if the file contains bad characters/incorrect line endings(a terminator)… and try to remove/correct them.
    3. Reset VS settings by opening "Developer Command Prompt for Visual Studio" => run devenv /ResetSettings command.

    Best Regards,

    Tianyu


    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.