tangyuan
V2EX  ›  问与答

在xcode中有没有办法一次性将.h.m文件中除了//打头备注的内容外的全部代码全删除掉呢?

  •  
  •   tangyuan · Jul 28, 2013 · 3608 views
    This topic created in 4856 days ago, the information mentioned may be changed or developed.
    以便我好照着备注再将代码写一遍
    4 replies  •  1970-01-01 08:00:00 +08:00
    lex
    lex
    Jul 28, 2013
    1
    ^(?!\/\/|\s*\/?\*).*\s$

    如图:

    tangyuan
    tangyuan
    OP
    Jul 28, 2013
    2
    @lex 好厉害!
    但我复制过去怎么没有反应呢?
    tangyuan
    tangyuan
    OP
    Jul 28, 2013
    3
    lex
    lex
    Jul 28, 2013❤️1
    4
    ^(?!\/\/).*
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:50 · PVG 12:50 · LAX 20:50 · JFK 23:50
    ♥ Do have faith in what you're doing.