在網(wǎng)上搜索了許久叫胁,關(guān)系sublime text 3配置codeformatter的技術(shù)貼,都沒有找到比較清楚的闷尿。
打開sublime text ——preferences——package control——搜索到install package 選中线椰。這個(gè)時(shí)候有些慢,一次不成功多點(diǎn)幾次纽窟。實(shí)在不行需要配置sublime text的hosts(具體百度去)肖油。install package 成功打開后——codeformatter 。稍等安裝臂港。
codeformatter安裝成功后——preferences——package settings——codeformatter——settings-default 森枪。打開找到"codeformatter_php_options",在里面的php_path中添加路徑趋艘。比如我:D:/PHPStudy/study/PHPTutorial/php/php-7.1.13-nts/php.exe疲恢。
然后去代碼文件中,快捷鍵Ctrl+alt+f
大功告成瓷胧!