V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
xatest
V2EX  ›  iDev

Xcode中有没有格式化(自动缩进)多行代码的快捷键?

  •  
  •   xatest ·
    aoxu · 2012-05-07 22:02:00 +08:00 · 17407 次点击
    这是一个创建于 4365 天前的主题,其中的信息可能已经有所发展或是发生改变。
    类似于vim中按=键indent的功能。
    5 条回复    2017-04-23 12:26:40 +08:00
    MosquitoLiu
        1
    MosquitoLiu  
       2012-05-07 22:21:07 +08:00
    试试control+i
    delphiqin
        2
    delphiqin  
       2012-05-07 22:21:26 +08:00
    你试试 control+i ?
    xatest
        3
    xatest  
    OP
       2012-05-07 22:42:56 +08:00
    @delphiqin @MosquitoLiu 有效,感谢!
    BenX
        4
    BenX  
       2012-05-08 10:03:47 +08:00
    只有Re-Indent(Ctrl+I)这一个调整缩进的功能,显然不够用。可以看看Uncrustify这个东东
    shuoit
        5
    shuoit  
       2017-04-23 12:26:40 +08:00
    @MosquitoLiu 缩进游泳,但不是格式化代码
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   943 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:05 · PVG 04:05 · LAX 13:05 · JFK 16:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.