Sublimetext3 Emmet在升华文本3中的filter.commentAfter不起作用

Sublimetext3 Emmet在升华文本3中的filter.commentAfter不起作用,sublimetext3,emmet,Sublimetext3,Emmet,在EmmetbyST3中,我尝试在创建标签时给出tab之后自定义一点注释,例如#div或.span 我读到这是在Emmet(Emmet.sublime settings)设置中的解决方案: “首选项”:{ “filter.commentAfter”:“”, “filter.commentBefore”:” } 但不是工作。请在用户/Emmet.sublime-settings文件中帮助,确保您的结构如下 { "preferences": { "filter.commen

在EmmetbyST3中,我尝试在创建标签时给出tab之后自定义一点注释,例如#div或.span

我读到这是在Emmet(Emmet.sublime settings)设置中的解决方案:

“首选项”:{
“filter.commentAfter”:“”,
“filter.commentBefore”:”
}

但不是工作。请在用户/Emmet.sublime-settings文件中帮助

,确保您的结构如下

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}
另外,如果你想自动添加
c
过滤器,你应该将你的
syntaxProfiles
设置为这样

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}

确保它与用户/Emmet.sublime-settings文件中的“首选项”(preferences)处于同一级别确保您的结构如下所示

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}
另外,如果你想自动添加
c
过滤器,你应该将你的
syntaxProfiles
设置为这样

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}

确保它与用户/Emmet.sublime-settings文件中的“首选项”(preferences)处于同一级别确保您的结构如下所示

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}
另外,如果你想自动添加
c
过滤器,你应该将你的
syntaxProfiles
设置为这样

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}

确保它与用户/Emmet.sublime-settings文件中的“首选项”(preferences)处于同一级别确保您的结构如下所示

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}
另外,如果你想自动添加
c
过滤器,你应该将你的
syntaxProfiles
设置为这样

{
    "preferences": {
        "filter.commentAfter"  : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->",
        "filter.commentBefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->"             
     }
}
{
    "preferences": {
    },
    "syntaxProfiles": {
        "html" : {
            // auto add the comments
            "filters": "html,c"
        }
    }
}


确保它与
首选项处于同一级别

您的
Emmet.sublime设置是这样的吗?或者它只是它的一部分?是的,由于@ionutvmi修复了它,所以文件看起来是这样的,我可以:)这就是你的
Emmet.sublime设置的样子吗?或者它只是它的一部分?是的,由于@ionutvmi修复了它,所以文件看起来是这样的,我可以:)这就是你的
Emmet.sublime设置的样子吗?或者它只是它的一部分?是的,由于@ionutvmi修复了它,所以文件看起来是这样的,我可以:)这就是你的
Emmet.sublime设置的样子吗?或者它只是它的一部分?是的,文件看起来是这样的,感谢@ionutvmi修复了它,我可以:)它工作了!谢谢@ionutvmi。无法自动添加
c
。我在那个文件里放了这个代码?现在它工作了,我必须重新启动计算机才能使更改生效。非常感谢你!是否有一种方法可以设置它只在div上触发,而不在其他元素上触发
.test
期望
h4。test
期望
它工作!谢谢@ionutvmi。无法自动添加
c
。我在那个文件里放了这个代码?现在它工作了,我必须重新启动计算机才能使更改生效。非常感谢你!是否有一种方法可以设置它只在div上触发,而不在其他元素上触发
.test
期望
h4。test
期望
它工作!谢谢@ionutvmi。无法自动添加
c
。我在那个文件里放了这个代码?现在它工作了,我必须重新启动计算机才能使更改生效。非常感谢你!是否有一种方法可以设置它只在div上触发,而不在其他元素上触发
.test
期望
h4。test
期望
它工作!谢谢@ionutvmi。无法自动添加
c
。我在那个文件里放了这个代码?现在它工作了,我必须重新启动计算机才能使更改生效。非常感谢你!是否有一种方法可以设置它只在div上触发,而不在其他元素上触发
.test
期望
h4。test
期望