The Wayback Machine - https://web.archive.org/web/20240917131950/https://www.geeksforgeeks.org/how-to-enable-live-server-on-visual-studio-code/
Open In App

How to Enable Live Server on Visual Studio Code?

Last Updated : 14 Dec, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Generally, when we make any change in our code, to see those changes on the browser we need to manually refresh the page to see the changes happening. Here the live server extension comes into the picture. After it has been installed, an automated localhost will be able to run in your browser, which you can start with a single button. Once you make changes in your code or write something new, after saving it, the browser will auto-refresh itself, then you will be able to see the changes quickly and automatically. The live server enables you to open an HTML document, and it runs a server for you and opens a browser window with the file in it. 

Steps for Installing and Enabling Live Server on Visual Studio Code 

Step 1: Click on the extensions option available on the left side in Visual Studio Code.

Clicking-on-extension-option

 

Step 2: Search Live Server in the search box and install it.

Searching-live-server-to-install

 

Step 3: The live server extension has been installed.

Live-server-installed

 

Step 4: Click on Go live present at the bottom.

Clicking-go-live

 

Step 5: The default browser will get opened automatically once you click on the go live.

Default-browser

 

This is how you can turn on the live server mode on Visual Studio Code.



Similar Reads

How to Install and Setup Live Server Extensions on Visual Studio code?
Visual Studio Code is one of the most sought-after IDE (Integrated Development Interface) of the current time. It helps the developers to efficiently write, build and test software over a single platform by combining and providing a multilateral set of functions. Visual Studio Code supports various programming languages like C, C++, C#, Java, Pytho
3 min read
How to enable/disable Word Wrap in Visual Studio Code?
When any text runs off the side of the screen, the Toggle Word Wrap feature of Visual Studio Code consolidates it within the window and formats it perfectly. Whether your property values are getting extremely stretched out from the screen or your comments are flying off to the right, this feature is used there for formatting it. Let's see how to do
1 min read
How to Download and Install Visual Studio Code on Ubuntu?
Visual Studio Code is a code editor that is basically used for web development or cloud platforms, but nowadays Visual Studio Code can do a lot. It is stated as the second most used code editor by developers in 2022 so if you are an aspiring IT student or a developer you should know how to use Visual Studio Code. Let's learn how to install Visual S
1 min read
How to Set corresponding File Icon in Visual Studio Code?
You can change the design of the folder icons using the Visual Icon Theme extension. Within VS Code, you can browse and install extensions. Click the Extensions icon in the Activity Bar on the side of VS Code or the View, as we demonstrated below. In this article, we are going to see, how to enable the corresponding file icon in Visual Studio Code
1 min read
How to Install Flutter on Visual Studio Code?
In this article, we will walk through the process of installing Flutter in Visual Studio Code. Flutter is an open-source portable UI framework for mobile, desktop, and web. It is developed and managed by Google, Flutter is used for creating a high-quality, beautiful, and fast native interface for android and iOS from a single codebase. The interfac
4 min read
How to Install Kotlin on MacOS using Visual Studio Code?
Kotlin is a modern statically typed and open source programming language that features both object-oriented and functional programming constructs. Over 60% of professional Android developers use Kotlin that helps boost productivity, developer satisfaction, and code safety. Features of Kotlin: Kotlin is Open-Source.Kotlin Supports Full Java Interope
2 min read
How to install Visual Studio Code on Arch-based Linux Distributions(Manjaro) ?
Visual Studio Code is free, powerful and one of the most popular IDE in the market. It is a cross-platform application and can be customized heavily by installing various extensions. All the modern programming languages like C, C++, Java, Python, JavaScript, React, Node JS, etc., are all supported by it. Features of VS CodeOpen-sourceIntegrated ter
2 min read
How to Install Visual Studio Code on Windows?
Visual Studio Code is the most popular code editor and the IDEs provided by Microsoft for writing different programs and languages. It allows the users to develop new code bases for their applications and allow them to successfully optimize them. For its high popularity, individuals opt to Install Visual Studio Code on Windows over any other IDE. I
4 min read
How to Integrate Git Bash with Visual Studio Code?
prerequisitesGit Bash is an application that provides Git command line experience on the Operating System. It is a command-line shell for enabling git with the command line in the system. VSCode is a Text editor that provides support for development operations and version control systems. It provides tools for a user to build hassle-free codes. One
2 min read
How to Run Powershell x86 Inside Visual Studio Code x64?
If you need to run PowerShell x86 in Visual Studio Code, this guide will help you set up your PowerShell x86 configuration in VS Code. Despite Visual Studio Code being a 64-bit application, you can still execute PowerShell x86 in VS Code to ensure compatibility with 32-bit scripts or modules. We'll walk you through the steps to configure and run 32
4 min read
How to Install and Setup Visual Studio for ASP.NET?
Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), Web applications, console, web apps, mobile apps, cloud, and web services, etc. To install and use Visual Studio for the commercial purpose one must buy a license from Microsoft. For learning (non-commercial) purpose, Microso
4 min read
How to Install and Setup Visual Studio for C#?
Prerequisite: Introduction to C# C# is a general-purpose, modern and object-oriented programming language pronounced as "C sharp". It was developed by Microsoft led by Anders Hejlsberg and his team within the .Net initiative and was approved by the European Computer Manufacturers Association (ECMA) and International Standards Organization (ISO). C#
2 min read
How to Install and Use Packages in Visual Studio for MacOS?
In this article, we will learn how to install and use a package in Visual Studio for MacOS. Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), console, Web applications, web apps, mobile apps, cloud, web services, etc. Native code can be managed with the help of IDE. It uses
2 min read
How to Install a C# Class Library in Visual Studio?
A C# library project is a separate project used to hold utility classes. So this might be the class that handles our database or might handle some communications with the network. In our case, we are going to create a math library that is a stand-in for some of those other cases. It is a single source of code if we have a shared library among sever
3 min read
How to Setup MySQL Database in Visual Studio 2022 For a C++ Application?
Databases play a crucial role in storing, retrieving, and managing data efficiently. MySQL, a popular open-source Relational Database Management System, is widely used for this purpose. C++ acts as the intermediary connecting user interfaces and MySQL databases, enabling developers to easily retrieve, edit, and store data. It provides the essential
5 min read
How to Run Visual Studio on Mac?
Microsoft Visual Studio was first released on 4 Dec. 1997 and the code name of this edition is called Boston. It is widely used by developers, It offers a bunch of tools to make coding easier. It is one of the best code editor software developers find. It is open-source free-to-use software. VS code installation is a must for every developer as a c
4 min read
Guide to Install and Setup Visual Studio for Android App Development
To start developing Android applications, one has to set up a proper development environment. It facilitates developers to use the tools needed in creating an app and ensure that all operations/processes carried out in a smooth manner. An IDE(Integrated Development Environment) is a complete application suite that provides services like writing and
4 min read
How to Install SQL Server Management Studio?
SQL Server Management Studio is a software application launched with Microsoft SQL Server 2005 that is used for configuring, managing, and administrating all components within the Microsoft SQL Server. It is one of the SQL Server management tools, regardless of your location used for designing queries and managing databases and data warehouses via
2 min read
How to Install Visual C++ on Windows?
In this article, we will discuss the process of installing Visual C++ on Windows. Visual C++ is part of the general "C suite" of programming languages often used for many different types of development projects. The full name of the product is Microsoft Visual C++, which is sometimes abbreviated as MSVC or VC++. Installing Visual C++ on Windows: Fo
1 min read
How to Install Visual C++ in MacOS?
Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Mac operating system. Installing Visual C++on MacOS: Follow the below steps to install macOS Step 1: Ope
1 min read
How to Install Visual C++ on Linux?
Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Linux System. Installing Visual C++ on Linux: Step 1: Go to the Microsoft website to download the Visual
2 min read
16 ways to use the Google Lens visual search tool on your phone
Have you ever wondered what the name of a flower is, how to say something in another language, or where to buy a product you saw online? If you have an Android phone, you can use Google Lens to find out the answers to these and many other questions. Google Lens is a visual search tool that lets you use your phone’s camera to explore the world aroun
8 min read
How to install and configure Apache Web Server on Godaddy Server?
GoDaddy VPS is a shared server that provides computational services, databases, storage space, automated weekly backups, 99% uptime, and much more. It’s a cheaper alternative to some other popular cloud-based services such as AWS, GPC, and Azure. Apache HTTP Server is an open-source web server software widely used by web hosting companies to provid
2 min read
How to Connect to Mysql Server Using VS Code and Fix errors?
MySQL is a relational database management system based on SQL-Structured Query Language used for accessing and managing records in a database. It can be easily connected with programming languages such as Python, Java, and PHP to serve various purposes that require CRUD ( Create,Read,Update,Delete) operations. MySQL is based on a client – server ar
4 min read
Creating an Encrypted Persistent Live Kali USB
The term “Live USB Persistence” refers to the fact that the files and data that we create in USB as a result of our work there, they are stored on the USB drive rather than the Hard drive, and by using Encryption in the Live USB, the Stored Data will be encrypted. As of this, we don't need to create any partitions on our hard drive in order to boot
3 min read
How to Make an Image Live using Flash?
Flash is a 2D animation software that can be used on different operating systems like macOS, Windows, Linux, etc. It was first launched in 1996 and the latest version is released in 2021. It is capable of different functionalities like masking, character tracing, lip-sync, motion and shape tweening, frame by frame animations, etc. The animations cr
3 min read
How to Create Ubuntu Live USB in Windows?
In this article, we will look into the process of creating an Ubuntu live USB on a Windows machine. This USB drive can be further used to either install Ubuntu on your Windows machine or use Ubuntu directly from the USB drive. Through this article, you will learn to create a bootable USB of Ubuntu in Windows. Instructions are valid for all versions
2 min read
How to Share Live Location using Google Maps
Remember how you used to share your live location using third-party applications? But, to ease your difficulty, Google Maps' new feature allows users to share their live location along with indicating the battery status of the device. Google Maps has upgraded to its all-new feature of Live location sharing directly without using any third-party app
8 min read
How to Enable or Disable SELinux Boolean Values?
As SELinux has tones of policies to handle and maintain the security level of the system. SELinux has given an easy way to dynamically update the policy. You need special arguments to make these policies persistent over a reboot, this capability is provided by the SELinux management utility. To see Boolean, you have getsebool terminal command, whic
2 min read
How to enable customers to know if your wordpress website delivers at their pincode or not?
Woocommerce check Pincode/zipcode for shipping plugin by Phoeniixx is a great help for the customers as it enables them to know if the website delivers at their Pincode along with the approximated delivery date. It stops the users from ordering from areas you don't deliver to. Thus increasing customer satisfaction rates and reducing cart abandonmen
2 min read