Live Server Sublime Text 3

"Learn how to set up and use Live Server with Sublime Text 3, with a simple example to get started quickly."

Live Server for Sublime Text 3

Live Server is a lightweight development server for Sublime Text 3 users. It is a great tool for quickly previewing your work, or for running tests. It also allows you to make changes to your webpages and see them update in real-time.

To use Live Server, you have to have Sublime Text 3 installed. You can download it for free from the Sublime Text website. Once you have Sublime Text 3 installed, you can install the Live Server package. To do this, you can either type “Live Server” into the Sublime Text command palette (Ctrl+Shift+P) or install it through the Package Control Manager.

Once the Live Server package is installed, you can open a folder containing your webpages with Sublime Text 3. To open the Live Server you can either type “Live Server: Start” into the command palette (Ctrl+Shift+P) or right-click on the folder and select “Live Server: Start”. This will open the Live Server in your default browser, and your webpages will be visible.

The Live Server also has some great features. For example, you can click the “Live Reload” button to automatically reload the page when you save changes. You can also click the “Settings” button to configure the port and the base path for the server. There is also an option to enable HTTPS for extra security.

You can also use the Live Server to run tests on your webpages. You can do this by writing your tests in JavaScript and then running them with the Live Server. To do this, you can write your tests in the test.js file and then run the

liveServer.runTests()
command in the console. This will run all your tests and give you the results.

Live Server is an excellent tool for quickly previewing your webpages, running tests, and making changes to your webpages without having to manually reload the page. It is an essential tool for any web developer using Sublime Text 3.

Answers (0)