xcode 如何在Xcode中显示光标的当前行和列位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33585957/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to show the cursor's current line & column position in Xcode?
提问by J-Dizzle
How do you view the cursor's current line and column position in Xcode? This is irrespective of showing the Line Numbers on the active sheet's left side, how can you show 'Line, Column', or look it up.
在Xcode中如何查看光标当前的行列位置?这与在活动工作表的左侧显示行号无关,如何显示“行、列”或查找它。
Here is an example from Eclipse -
这是来自 Eclipse 的示例 -
回答by Ashkan
Too my knowledge, showing column number has been removed from new versions of Xcode. You can see line number and set column guide in text editor setting though.
据我所知,显示列号已从新版本的 Xcode 中删除。不过,您可以在文本编辑器设置中查看行号和设置列指南。
If you are coding in c/c++ I strongly suggest switching to QtCreatoror Clion. I personally prefer QtCreator since 1) it has a fakeVim key binding and 2) it is better at loading symbols and giving autocomplete suggestion.
如果您使用 c/c++ 进行编码,我强烈建议您切换到QtCreator或Clion。我个人更喜欢 QtCreator,因为 1) 它有一个 fakeVim 键绑定和 2) 它在加载符号和提供自动完成建议方面更好。
回答by Thomas Keuleers
Try this Xcode plugin: Backlight for Xcode
试试这个 Xcode 插件:Backlight for Xcode
You can use Alcatrazto easily install this plugin, another way of installing it is to:
您可以使用Alcatraz轻松安装此插件,另一种安装方式是:
- Download source
- Build code
- Restart Xcode
- (Check Github page on how to further configure the plugin)
- 下载源
- 构建代码
- 重启Xcode
- (查看 Github 页面了解如何进一步配置插件)