如何更改 Atom 中的默认注释模式(专门针对 CSS)
How to change default comments pattern in Atom (specifically for CSS)
有没有办法更改评论片段的默认行为?
现在按 Ctrl+/ 我得到这个:
p {
color: #000;
/*margin: 0;*/
}
但我想要这个:
p {
color: #000;
/* margin: 0; */
}
打开您的配置文件(使用 File -> Config
)并将这些行添加到您的配置中:
'.source.css':
'editor':
'commentStart': '/\* '
'commentEnd': ' \*/'
这将更改 CSS 个文件中注释的默认行为
/*COMMENTED TEXT*/
到
/* COMMENTED TEXT */
有没有办法更改评论片段的默认行为?
现在按 Ctrl+/ 我得到这个:
p {
color: #000;
/*margin: 0;*/
}
但我想要这个:
p {
color: #000;
/* margin: 0; */
}
打开您的配置文件(使用 File -> Config
)并将这些行添加到您的配置中:
'.source.css':
'editor':
'commentStart': '/\* '
'commentEnd': ' \*/'
这将更改 CSS 个文件中注释的默认行为
/*COMMENTED TEXT*/
到
/* COMMENTED TEXT */