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对话框编辑首选项