xcode->preferences->text editing->display options->show line numbers 转载于:https://www.cnblogs.com/qingjoin/archive/2012/08/30/2664043.html