VS Code is not showing my html code rather it is just rendering it in preview mode

ATIQUE ABDULLAH 20 Reputation points
2025-02-28T17:36:20.1333333+00:00

My VS code is not showing me the HTML code rather it is just rendering the HTML cod in the preview form.

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
252 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dou Xu-MSFT 400 Reputation points Microsoft External Staff
    2025-03-03T07:05:23.39+00:00

    Hello @ATIQUE ABDULLAH ,

    Welcome to Microsoft Q&A forum.

    This document says,

    VS Code doesn't have built-in support for HTML preview but there are extensions available in the VS Code Marketplace. Open the Extensions view (Ctrl+Shift+X) and search on 'live preview' or 'html preview' to see a list of available HTML preview extensions.

    Therefore, you may have installed theses HTML preview extensions that may affect VS Code settings. Please try the followings:

    1.Disable these extensions in VS Code.

    2.Open HTML files with Text Editor.

    User's image

    Best Regards,

    Dou


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.