Xcode 8 Swift 类似插件方法

Xcode8 Swift使用技巧 

1 option + cmd + / 可以弹出注释

2 color 然后加 enter 可以弹出颜色选择

3    #FIXME:  警告

4   #MARK: 备注信息

5   #TODO:  要做的

import UIKit
class ViewController: UIViewController {
    //option + cmd + / 可以弹出注释
    /// <#Description#>
    override func viewDidLoad() {
        super.viewDidLoad()
//        color 然后加 enter 可以弹出颜色选择
        view.backgroundColor=#colorLiteral(red: 1, green: 0.2527923882, blue: 1, alpha: 1)
        let _img = UIImageView(frame: CGRect(x: 0, y: 20,  200, height: 300))
        // #FIXME:  警告
        _img.image=#imageLiteral(resourceName: "haha")
        view.addSubview(_img)
        // Do any additional setup after loading the view, typically from a nib.

    }
    // #MARK: 备注信息
    override func didReceiveMemoryWarning() {

        super.didReceiveMemoryWarning()

        // Dispose of any resources that can be recreated.
    }
  // #TODO:  要做的

}
 
原文地址:https://www.cnblogs.com/ZhangShengjie/p/6226984.html