How to Install and Setup Live Server Extensions on Visual Studio code?
Last Updated :
20 Mar, 2024
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, Python, Javascript, and so on. It increases the productivity of users and submerges multiple sets of operations on a single platform about the broad categories of development including applications, websites, and databases to make programming pretty fun and clear.
Speaking of Extension in Visual Studio Code, there are a lot of supporting extensions and packages per your requirement that help you compile and run your code alongside providing a wide variety of support per your development needs.
Installing Live Server Extension by Ritwick Dey
For developers each time they write code they have to save the file and reload the page manually to see the results, here you can install the live server in Visual Studio Code to use your system as an on-time live server.
Step 1: Open Visual Studio Code and navigate to the sidebar.
Open Visual Studio CodeStep 2: Open the Extension section and search for your extension in the search bar.
Search for ExtensionStep 3: For installing the live server, search live server and you will see an extension named Live Server by Ritwick Dey, install it.
Install Live Server By Ritwick DeySteps to Use Live Server Extension
Writing your code, saving it, and then each time reloading it manually and waiting for it to reflect is cumbersome. Bother no more, Live Server will be automating this task for you. Although after installing Live Server, you will see a blue toolbar at the bottom of your Visual Studio Code while writing the code, there will be an option to Go Live, just save your program file and click on Go Live it will redirect to live server.
For instance, consider the demo here:
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript">
var scoreMaths = 70;
document.write(scoreMaths);
</script>
</head>
<body>
</body>
</html>
This code will output the value 70 that was stored in the variable scoreMaths, however, if the scoreMaths needs to be updated to 75, you have to change var scoreMaths = 75; and save the program file and once you launch the Live Server by clicking on Go Live, all the changes will be automatically reflected on the Live Server without having to reload manually.
Similar Reads
How to Enable Live Server on Visual Studio Code When working on web development projects, you often need to manually refresh the browser to see the changes you make in your code. The Live Server extension for Visual Studio Code automates this process by creating a local development server. With Live Server, any time you save your HTML, CSS, or Ja
7 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 Microso
4 min read
How to Install and Setup Visual Studio for C#? Installing and setting up Visual Studio is the first step for developers to build, compile, and run C# applications. Whether you are a beginner or an experienced programmer, Visual Studio provides a powerful integrated development environment (IDE) for writing and debugging C# code. With Visual Stud
3 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 Visua
1 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 b
2 min read