【发布时间】:2014-03-18 02:29:21
【问题描述】:
我正在尝试更改 Xcode 的 NSDictionary 自动格式以符合样式指南:
Xcode 行为:
NSDictionary *resourceResponseDictionary = @{
@"status": @"OK",
@"result": [NSDictionary dictionary]
};
期望的行为:
NSDictionary *resourceResponseDictionary = @{
@"status": @"OK",
@"result": [NSDictionary dictionary]
};
我应该从哪里着手进行更改?有没有可能?
【问题讨论】:
-
多年来我一直在寻找解决方案!我终于通过禁用
Automatically indent based on syntax“解决”了它。 -
感谢 lulian,在设置 -> 文本 -> 缩进中找到了这个选项。
标签: xcode nsdictionary autoformatting