Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.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
WebStorm中的JSX格式-缩进_Webstorm - Fatal编程技术网

WebStorm中的JSX格式-缩进

WebStorm中的JSX格式-缩进,webstorm,Webstorm,考虑以下JSX表达式: return <><p>Some text</p><p><strong>Some more text!</strong></p></>; JSX格式在设置|编辑器|代码样式| HTML中配置;如果在设置|编辑器|代码样式| HTML中配置了其他选项卡上的p列表中的内联内容和strong,请尝试从中删除p;请尝试从中删除p,其他选项卡上的内联元素列表中的p,如果内联内容和str

考虑以下JSX表达式:

return <><p>Some text</p><p><strong>Some more text!</strong></p></>;

JSX格式在设置|编辑器|代码样式| HTML中配置;如果在设置|编辑器|代码样式| HTML中配置了其他选项卡上的
p
列表中的内联内容和
strong
,请尝试从中删除
p
;请尝试从中删除
p
其他选项卡上的内联元素列表中的
p
,如果内联内容
strong
,请不要中断

return <>
    <p>Some text</p>
    <p>
        <strong>Some more text!</strong>
    </p>
</>;