V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
nichan
V2EX  ›  问与答

写Python时如何快速去空格

  •  
  •   nichan · 2012-12-31 22:43:05 +08:00 · 3476 次点击
    这是一个创建于 4105 天前的主题,其中的信息可能已经有所发展或是发生改变。
    有时候会遇到这样的情况,某一大长段代码是属于某if条件下,然后写到最后发现if可以去掉,但是怎么样才能快速把每行代码前面的那四个空格去掉呢??
    目前在用Sublime Text 2, 没深入研究过,求解决方案。
    5 条回复    1970-01-01 08:00:00 +08:00
    shellex
        1
    shellex  
       2012-12-31 22:45:50 +08:00   ❤️ 1
    选中后shift+tab
    thedevil5032
        2
    thedevil5032  
       2012-12-31 22:46:59 +08:00   ❤️ 1
    if True :
    thedevil5032
        3
    thedevil5032  
       2012-12-31 22:47:41 +08:00   ❤️ 1
    Vim:
    Ctrl-v 很好解决的事情.
    cloverstd
        4
    cloverstd  
       2012-12-31 23:09:49 +08:00   ❤️ 1
    Vim:
    Num<<
    nichan
        5
    nichan  
    OP
       2012-12-31 23:24:22 +08:00
    @shellex
    @thedevil5032
    @cloverstd
    多谢!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5702 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.