Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
尝试Uncrustify 工具。当我的代码格式错误时,它对我有用 =)
另外,看看这个 问题。
Try Uncrustify tool. Works for me when I've got a bad formatted code =)
Also, have a look at this question.
这是 Xcode 3 的示例。我没有 Xcode 4,所以我可以'不在那里测试它,但希望类似的东西会起作用。如果没有,您可以使用 Automator 创建服务。
另请参阅以下问题:
Here's an example for Xcode 3. I don't have Xcode 4 so I can't test it there, but hopefully something similar will work. If not, you could create a service with Automator.
Also see these questions: