简体   繁体   中英

Can PhpStorm make a check of if the project is opened in the browser or not?

I work in PhpStorm. When in project I click "Run", it runs in browser. But sometimes if I play "Run" often, there is no end of tabs in browser. Can PhpStorm make a check of if the project is opened in the browser or not? And just refresh the browser page if it's opened.

This is what I do, and there is only 1 tab open at all times - although it is nested within the IDE.

  • Run > Edit configurations
  • Press the green arrow in the top left and add Chromium Remote

在此处输入图片说明

  • After that you can press Alt + Shift + F10 (Run) and a pop-up box should appear. Select your Chromium Remote

在此处输入图片说明

  • Now you should have a window appear in your IDE and now you can run your files with the run toolbar at the top and they'll appear in the Chromium Remote window.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM