Member-only story

How to Test your web frontend design in mobile device via VS code?

DigNo Ape
2 min readApr 16, 2024

--

In the process of website design, testing plays an important role before the deployment so that we can ensure it works and looks as you expect. VS code is a good development tool, and we can use its extension Live Server to go through the website for review.

We would like to share a great function that we are able to review the frontend directly through your mobile devise instead of only browsing it through your web browser in laptop or PC by adding few lines and taking few actions.

Step 1: install live server from extension tab.

Step 2: Follow the path of file/ preference/ setting and enter live server. You can see Live Server Config tab.

Step 3: In tab of Live Server Config, you can see multiple hyperlinks of Edit in settings.json, enter any of them and add the following lines.

"liveServer.settings.useWebExt": true

Step 4: Go to command line (CMD) and enter ipconfig. You can see the IP address, which is the one you should use in you mobile device (192.168.XXX.XXX:5500).

Thank you!

--

--

DigNo Ape
DigNo Ape

Written by DigNo Ape

我們秉持著從原人進化的精神,不斷追求智慧的累積和工具的運用來提升生產力。我們相信,每一個成員都擁有無限的潛力,透過學習和實踐,不斷成長和進步。

No responses yet