islujw
V2EX  ›  Xcode

Xcode 无法删除最后一行

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

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

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

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

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