下面由phpstorm教程欄目給大家介紹phpstrom配置php環(huán)境(設(shè)置自動(dòng)同步服務(wù)器、增加swoole自動(dòng)提示)的方法。有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)大家有所幫助。
【推薦學(xué)習(xí):《PHP視頻教程》、《PhpStorm使用教程》】
phpstorm設(shè)置自動(dòng)同步服務(wù)器
- Tools->Deployment->Confinguration
-
點(diǎn)+號(hào),添加服務(wù)器,類型SFTP,輸入name
點(diǎn)擊ok,項(xiàng)目與服務(wù)器連接成功!
設(shè)置服務(wù)器映射,
Tools->Deployment->Confinguration->Mappings
-
菜單欄找到【工具/Tools】->【Deployment/部署】->【Automatic Upload/自動(dòng)上傳】。
-
點(diǎn)擊【Automatic Upload/自動(dòng)上傳】,前面顯示小勾(√),表示已啟動(dòng)自動(dòng)上傳功能
-
自動(dòng)上傳功能已成功開啟,當(dāng)文件有所修改,并按Ctrl+S(保存)時(shí),文件就會(huì)自動(dòng)上傳到服務(wù)器。
phpstorm增加swoole自動(dòng)提示
下載swoole-ide-helper-en
git clone https://github.com/eaglewu/swoole-ide-helper.git
打開phpstrom 項(xiàng)目,External Libraries 右擊,選擇Configure PHP Include Path
點(diǎn)擊+,選擇目錄 swoole-ide-helper-en,點(diǎn)擊確定。
至此,swoole函數(shù)將會(huì)有自動(dòng)提示。