
我正在尝试在 Visual Studio Code 中添加注释代码片段,该代码片段应在列末尾添加破折号,但根据缩进,破折号的数量应该有所不同。代码片段应生成以下内容:
//--------------------------------------------------
// | <- cursor here
Indented code
//------------------------------------------------
// | <- Cursor here
这可能吗?