nichan
V2EX  ›  问与答

写Python时如何快速去空格

  •  
  •   nichan · Dec 31, 2012 · 4403 views
    This topic created in 4905 days ago, the information mentioned may be changed or developed.
    有时候会遇到这样的情况,某一大长段代码是属于某if条件下,然后写到最后发现if可以去掉,但是怎么样才能快速把每行代码前面的那四个空格去掉呢??
    目前在用Sublime Text 2, 没深入研究过,求解决方案。
    5 replies    1970-01-01 08:00:00 +08:00
    shellex
        1
    shellex  
       Dec 31, 2012   ❤️ 1
    选中后shift+tab
    thedevil5032
        2
    thedevil5032  
       Dec 31, 2012   ❤️ 1
    if True :
    thedevil5032
        3
    thedevil5032  
       Dec 31, 2012   ❤️ 1
    Vim:
    Ctrl-v 很好解决的事情.
    cloverstd
        4
    cloverstd  
       Dec 31, 2012   ❤️ 1
    Vim:
    Num<<
    nichan
        5
    nichan  
    OP
       Dec 31, 2012
    @shellex
    @thedevil5032
    @cloverstd
    多谢!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 08:06 · PVG 16:06 · LAX 01:06 · JFK 04:06
    ♥ Do have faith in what you're doing.