islujw
V2EX  ›  Xcode

Xcode 无法删除最后一行

  •  
  •   islujw · Jul 30, 2019 · 6223 views
    This topic created in 2542 days ago, the information mentioned may be changed or developed.

    好像从去年还是前年开始,Xcode 编辑文件时,最后一行就无法删除了,必定会自动留出空的最后一行。

    有什么办法能删除最后一行吗?

    3 replies    2019-07-31 11:48:20 +08:00
    oxoxoxox
        1
    oxoxoxox  
       Jul 30, 2019
    强迫症?
    我个人觉得无所谓
    我们公司规定最后一行必须是空白行,code check tools 也会警告
    auin
        2
    auin  
       Jul 31, 2019
    这是 Unix 编程中的约定“ newline at end of file ” ,留着呗

    https://gcc.gnu.org/ml/gcc/2001-07/msg01120.html
    islujw
        3
    islujw  
    OP
       Jul 31, 2019
    @oxoxoxox liuxey 嗯,这个我知道,但用 Xcode 编辑的不一定是代码文件,还可能是别的文档呢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3074 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:49 · PVG 21:49 · LAX 06:49 · JFK 09:49
    ♥ Do have faith in what you're doing.