Is there an editor or ide that has live preview option for Php

Asked

Viewed 209 times

-1

Does anyone know any editor or ide that has live preview for php feature, in case a live preview automatically displays the result in the browser, without having to save the file, ie the link is live and direct, as I type a code already appears simultaneously I’m looking for one like this for Php, For html,css and js Brackets is working for me, But for Php this giving error I’ve tried several editors and you didn’t work It can be one that has partial live preview( that has to save the Php file)

1 answer

2

Look, I also do not know one that does in real time but similarly you can install the plugin Browser Sync to the VSCODE (actually any terminal IDE).

I did with the terminal Node.Js putting:
npm install -g browser-sync

After the installation is complete you can go in your open project in Vscode and press CTRL + " to open a terminal and type:

browser-sync start --proxy localhost/nomedoseuprojeto --f . server

browser-Sync start: initializes;

--proxy pathname: how is PHP and the browser-Sync uses the port :3000, you need to specify its local path.

--f .: arrow the current project folder to open.

Whenever you give one CTRL + S In some change, it will reload the page quickly and display the changes. It’s ideal if you’re using 2 screens where one is your IDE and the other is your browser.

I hope I’ve helped.

Att

Browser other questions tagged

You are not signed in. Login or sign up in order to post.