V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
islujw
V2EX  ›  Xcode

Xcode 无法删除最后一行

  •  
  •   islujw · 2019-07-30 15:26:27 +08:00 · 5267 次点击
    这是一个创建于 1703 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    https://gcc.gnu.org/ml/gcc/2001-07/msg01120.html
    islujw
        3
    islujw  
    OP
       2019-07-31 11:48:20 +08:00
    @oxoxoxox liuxey 嗯,这个我知道,但用 Xcode 编辑的不一定是代码文件,还可能是别的文档呢。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1004 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:18 · PVG 06:18 · LAX 15:18 · JFK 18:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.