admin管理员组文章数量:1390499
I'm using IDEA 2017.2. I need to setup JSX codestyle so there are spaces between curly braces like { event.series }
. However, it autoformats it to {event.series}
I have these checked in Javascript -> Spaces.
Where can I set it up so it plies with ESLint's react/jsx-curly-spacing
set to "always"
?
I have this
I want this
I'm using IDEA 2017.2. I need to setup JSX codestyle so there are spaces between curly braces like { event.series }
. However, it autoformats it to {event.series}
I have these checked in Javascript -> Spaces.
Where can I set it up so it plies with ESLint's react/jsx-curly-spacing
set to "always"
?
I have this
I want this
Share Improve this question edited Aug 9, 2017 at 21:32 Dave Newton 160k27 gold badges260 silver badges308 bronze badges asked Aug 9, 2017 at 21:18 simPodsimPod 13.6k18 gold badges97 silver badges147 bronze badges2 Answers
Reset to default 10In 2017.2, it is Settings | Editor | Code Style | JavaScript | Spaces
, Other/Within interpolation expressions
:
This option affects JSX braces as well as Angular interpolations
For IntelliJ IDEA 2020, you need to go to File -> Settings -> Editor -> Code Style -> JavaScript
and in Spaces
tab find section called Within
.
If you want to make the below statement look:
<div>Hello, ${ to } from ${ from.join( ',' ) }</div>
then check the Interpolation expressions
checkmark.
本文标签: javascriptJSX reactjsxcurlyspacing IntelliJStack Overflow
版权声明:本文标题:javascript - JSX reactjsx-curly-spacing IntelliJ - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744659237a2618144.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论