Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在PhpStorm中将id移动到类前面的任何方法_Html_Phpstorm_Reformatting - Fatal编程技术网

Html 在PhpStorm中将id移动到类前面的任何方法

Html 在PhpStorm中将id移动到类前面的任何方法,html,phpstorm,reformatting,Html,Phpstorm,Reformatting,这是我键入时的代码: <input type="checkbox" class="form-check-input" id="billing-address-default" checked> 我可以重新格式化代码以使id在类前面移动吗 <input type="checkbox" id="billing-address-default" class="form-check-input" checked> 可以在设置|编辑器|代码样式->HTML->排列中配置属性

这是我键入时的代码:

<input type="checkbox" class="form-check-input" id="billing-address-default" checked>

我可以重新格式化代码以使id在类前面移动吗

<input type="checkbox" id="billing-address-default" class="form-check-input" checked>

可以在设置|编辑器|代码样式->HTML->排列中配置属性顺序:默认情况下,属性按字母顺序排序,但您可以删除默认规则并添加自己的规则,定义自定义顺序

要重新排列属性,请使用代码|重新排列代码操作,或确保在重新格式化文件对话框中启用了重新排列代码,以使此操作能够重新格式化文件

请注意,您可以使用Code | Show Reformat file对话框编辑首选项