当前位置:网站首页>Vscode实现PHP在浏览器实时预览
Vscode实现PHP在浏览器实时预览
2022-06-12 23:47:00 【s3207】
大家在写html的时候能用到实时预览,但是在PHP就没法用了,虽然之前推荐过“Open PHP/HTML/JS In Browser”这个插件,可是没有实时预览这个功能,是非常难受的,然后我就翻阅互联网找到了一种解决方法。
那就是使用“Live Server”,也许你会说:“什么?这不是实时预览html的吗?你不是在开玩笑吧。”那我只能说是咱大家见识少了,我看见的第一瞬间也是不相信的,只是我发现了谷歌浏览器和火狐浏览器的这个插件。
就是“Live Server Web Extension”这个插件,谷歌浏览器和火狐浏览器才能下载。
(记得点击文字超链接下载)
2.配置插件。
首先我们把插件打开。
发现是这个一个界面,然后我们只需要简单的配置两个地址就可以了。
①“Actual Server Address”是你访问实际服务器的地址,就好比我前面教程中IIS配置的那个地址,也是你使用XAMPP什么的服务器地址,如图下图解释。
②“Live Server Address”是填写你使用插件右击,有一个"Open with live server",点击之后打开浏览器,上方地址,如图所示。
接下来我们打开Vscode找到Live Server,打开它的拓展,把下方给勾选上。
最后总结
1.我们先在浏览器下载好这个这个插件。
2.我们去配置这个插件的地址。最终效果如图。
3.我们打开Vscode中的 Live Server插件,打开它的拓展,勾选上,如图所示。
4.我们在浏览器中输入你的实际访问地址,如:http://localhost:1553/blog/index.php
配置好之后大家就可以打开浏览器来测试啦。
边栏推荐
- 2202 resume making
- Theory + practice will help you master the dynamic programming method
- 实战 | UI 自动化测试框架设计与 PageObject 改造
- 2022 electrician (elementary) operation certificate examination question bank and online simulation examination
- 2022年6月11日记:王老师的春天,混入
- CV - baseline summary (development history from alexnet to senet)
- [leetcode] understanding and usage of map[key]+
- Case sharing of online real queuing system reconfiguration -- practical part
- 2022 operation of simulated examination platform for hoisting machinery command certificate
- Huawei cloud elastic ECS use [Huawei cloud to jianzhiyuan]
猜你喜欢
Preparing for the Blue Bridge Cup Day11__ Basic operation of serial port communication
Divicon est toujours utilisé dans le leaflet de l'ère H5?
How leaflet gracefully displays the bubble window of overlapping points
CV—BaseLine总结(从AlexNet到SENet的发展历程)
数组
Is divicon still used in leaflet in H5 era?
Day 3 of jsbom and DOM learning
Start of u-boot_ Armboot analysis (I)
Based on three JS offshore wind power digital twin 3D effect
NCF 的Dapr应用实例的运行
随机推荐
Initial experience of Huawei cloud Conference [Huawei cloud to jianzhiyuan]
36 krypton's debut | "osogena" won nearly ten million angel rounds of financing. The original DLR scientists of German Aerospace Research and development system modeling and simulation CAE software PA
〖Kubernetes指南⑤〗Label快速入门
How leaflet gracefully displays the bubble window of overlapping points
Develop a web office suite from scratch (5): mouse hover over text
TCP与UDP
scala中的隐式转换和隐式参数讲解与实践
How to load 100000 pieces of data in leaflet
Leetcode1601: the maximum number of building change requests that can be reached (difficult)
[leetcode] understanding and usage of map[key]+
Introduction to business rules service on SAP Business Technology Platform (BTP)
支持Canvas的Leaflet.Path.DashFlow动态流向线
Enterprise wechat H5_ Authentication, PC website, enterprise wechat scanning code, authorized login
[literature translation - Part] revealing the structure of clinical EEG signals by self supervised learning (SSL and RP principles / data / preprocessing)
2202-简历制作
Dry goods sharing | BitSet application details
[North Asia data recovery] data recovery cases in which the partitions disappear and the partitions are inaccessible after the server reinstalls the system
RT thread quick start - experience RT thread
2022 R2 mobile pressure vessel filling test questions and online simulation test
Mgr and greatsql resource summary