简体   繁体   English

如何使用phpstorm在* .blade.php文件中设置代码样式

[英]How to set code style in *.blade.php file using phpstorm

Ctrl+Alt+LCtrl+Alt+L键,它将我的代码设置在htmlcssphp但是当我在.blade.php上使用它时,什么也没发生。

Did you install the plugin for blade support or the plugin for Laravel? 您是否安装了刀片支持插件或Laravel插件?

[ [ 1]

If not, do so and try again. 如果不是,请重试。 In your settings, there is no specific option for setting a code style for "blade" files, but phpStorm can recognize the language of each code line in your blade.php file, so it will apply either the HTML code style in HTML lines, or JS code style in JS lines and so on. 在您的设置中,没有为“刀片”文件设置代码样式的特定选项,但是phpStorm可以识别blade.php文件中每个代码行的语言,因此它将在HTML行中应用HTML代码样式,或JS行中的JS代码样式等。 Try to set them to your needs and then use your shortcut. 尝试根据您的需要设置它们,然后使用快捷方式。 Also, please check if your shortcut is correct. 另外,请检查您的快捷方式是否正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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