简体   繁体   English

HTML IntelliJ中的对象文字括号

[英]Object literal braces in html IntelliJ

How can I setup IntelliJ IDEA to format code like 如何设置IntelliJ IDEA来格式化代码

hello {{name}}

to

hello {{ name }}

for Angular templates? 角模板?

If Auto-insert white space in the interpolation is enabled in Settings | Editor | General | Smart Keys 如果在Settings | Editor | General | Smart Keys启用了在插值中自动插入空格。 Settings | Editor | General | Smart Keys Settings | Editor | General | Smart Keys , spaces are inserted when completing braces. Settings | Editor | General | Smart Keys ,完成大括号时会插入空格。 There is, however, no way to insert them on code reformatting 但是,无法在重新格式化代码时插入它们

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

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