从 Xcode 项目中删除空行

Remove empty lines from Xcode project

我有一个很长的 Xcode 项目,它有很多空行,这让我很难浏览 project.Is 有没有从选定代码中删除空行的快捷键?

 [inboxmessagesarray removeAllObjects];
    [checkimageArray removeAllObjects];


    NSMutableDictionary *callDict =[[NSMutableDictionary alloc] init];


    [callDict setObject:@"messages-getModuleMessages" forKey:@"call"];
    [callDict setObject:FB_API_KEY forKey:@"accessSecret"];
    NSString *x=[FBUserManager sharedUserManager].authToken;
    [callDict setObject:x forKey:@"authToken"];
    [callDict setObject:@"json" forKey:@"format"];

    [callDict setObject:@"archived" forKey:@"callType"];


    FBGenericWebHandler *handler = [[FBGenericWebHandler alloc] init];
    handler.delegate = self;
    [handler ArchivesMessages:callDict];
    handler = nil;
   [SVProgressHUD showWithStatus:@"Loading"];

您在 Xcode 中安装了 ClangFormat-Xcode 插件。从项目代码中删除不必要的 space。

下载:ClangFormat-Xcode

见下文: