【发布时间】:2019-11-19 19:06:26
【问题描述】:
我想在右括号上添加注释,所以当代码过于嵌套时,我可以知道每个括号所属的位置,如下所示:
.parent{
position: relative;
height: 100px;
width: 100px;
.child{
position: absolute;
height: 50px;
left: 25px;
width: 50px;
&:before{
content: '';
background: red;
position: absolute;
height: 50px;
top: 25px;
width: 50px;
} // before
} // .child
} // .parent
如果这可以在我输入时或自动保存时实现,那就太棒了。
【问题讨论】:
标签: regex visual-studio-code sass vscode-snippets