如何在 Sublime Text 3 中修剪前导空格

问题描述 投票:0回答:2

我有一个字符串列表,其中所有字符串都有前导空格
enter image description here

如何删除它

sublimetext3
2个回答
0
投票

所以我找到了一种使用 sublime 包来做到这一点的方法Trimmer
修剪器截图


0
投票
  1. 转到替换对话框:

    Find/Replace...

  2. 启用正则表达式匹配(

    .*
    图标)。

  3. 设置

    Find: ^\s*
    Replace:

  4. 点击

    Replace All

© www.soinside.com 2019 - 2024. All rights reserved.