Making VSCode Work for You in Scripting


One of the annoyances with web scripting is that you have to save the file and then load it in a browser to see your progress. While it only takes a few seconds to refresh the file once loaded in the browser, it would be nicer if you can see the results of your work real-time and make corrections while you script.

5dc6354dd0bb0d5d0d47313f266e3060ef235aea1135533858dc34b33a117eae.jpg

With VSCode you can do that if you load the extension, Live Preview. Provided by Microsoft, the extension, when activated, generates a second window that shows your progress. However, triggering the tool is not obvious. Once installed through extension, you might find yourself struggling, trying to figure out how to see the tool work.

Unfortunately, Microsoft in its typical genius, doesn't make a simple instruction easy to find. If you go to the product page on the tool, it's a whole lot of babble, and no clear instruction how to get started.

1b5341076d924404cd58fa5a847e8498954d96c8987aa2b222037ef5570c8bce.jpg

For the above, it's a very simple step. Make sure to restart you VSCode after installing Live Preview. Then, when you start your web scripting page, usually an HTML file, right-click in the middle of the editor page. The internal menu will give you the option to see Live Preview. Click it, and your view page comes up.

877d25f57378614559733bdb802f1e504ac74cf7cec444ca4925583e5f3257ff.jpg

Try to focus on learning shortcuts as you go. You spend more time scripting and less time being frustrated with IDEs or scripting environments.

How do you rate this article?

15


WinterYeti
WinterYeti

A professional freelance writer for the last 20 years and a budding photographer by hobby.


The Intersect of Crypto Musings & Consumer Impacts
The Intersect of Crypto Musings & Consumer Impacts

A blog focused on ongoing government regulation for crypto or consumer issues with crypto with wide range of topics from pitfalls to avoid to opportunities to grab.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.