我想在右括号上添加注释,因此当代码嵌套过多时,我可以知道每个括号所属的位置,如下所示:
.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
如果这可以在我输入或自动保存时实现,那就太棒了。