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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:10:30  来源:igfitidea点击:

How to show the cursor's current line & column position in Xcode?

xcodetext-editor

提问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 的示例 -

enter image description here

在此处输入图片说明

回答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++ 进行编码,我强烈建议您切换到QtCreatorClion。我个人更喜欢 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轻松安装此插件,另一种安装方式是:

  1. Download source
  2. Build code
  3. Restart Xcode
  4. (Check Github page on how to further configure the plugin)
  1. 下载源
  2. 构建代码
  3. 重启Xcode
  4. (查看 Github 页面了解如何进一步配置插件)