从Xcode项目中删除空行

时间:2015-01-19 09:14:56

标签: ios objective-c xcode ios6

我有一个非常长的Xcode项目,它有很多空行,这让我很难在项目中导航。是否有任何短键可以从选定的代码中删除空行?

 [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"];

1 个答案:

答案 0 :(得分:10)

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

下载:ClangFormat-Xcode

见下文:

enter image description here