search

Home  >  Q&A  >  body text

css3 - 在sublime text里, 如何让emmet生成的带前缀css属性垂直对齐?

比如,在sublime 里输入 trfs ,按Tab,会生成以下代码:

  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;

但我希望按Tab键生成的是这样 垂直对齐 (或者叫 右对齐)的代码:

  -webkit-transform-style: preserve-3d;
     -moz-transform-style: preserve-3d;
      -ms-transform-style: preserve-3d;
          transform-style: preserve-3d;

请问该如何设置呢?
难道要每个属性都重新自定义一个 snippet 吗?
或者有合适的格式化插件吗?

天蓬老师天蓬老师2783 days ago675

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 11:15:00

    emmet itself does not provide this setting: preferences

    You can try this plug-in: alignment

    reply
    0
  • Cancelreply