【问题标题】:How to remove spaces from mirrored fields in Sublime Text如何从 Sublime Text 中的镜像字段中删除空格
【发布时间】:2014-03-03 12:44:14
【问题描述】:

我正在使用 Sublime Text 2/3 中的 sn-ps,想知道是否有任何方法可以从镜像字段中删除空格。

一个例子:

Variable Description = "$1";
{$1}

如果用户要输入,应该变成以下内容:晚餐时间

Variable Description = "Dinner Time";
{DinnerTime}

【问题讨论】:

    标签: field sublimetext2 sublimetext sublimetext3


    【解决方案1】:

    以前没有用 sn-ps 做太多事情,但是替换功能可能会得到你想要的。看看http://docs.sublimetext.info/en/latest/extensibility/snippets.html#substitutions

    如果我不得不猜测的话,应该是${1/\s//g}

    【讨论】:

      猜你喜欢
      • 2014-02-08
      • 2012-08-14
      • 1970-01-01
      • 1970-01-01
      • 2013-03-04
      • 2018-12-29
      • 1970-01-01
      • 1970-01-01
      • 2021-12-22
      相关资源
      最近更新 更多