我怎么知道我的光标在 Xcode 中的哪个 COLUMN?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7954723/
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 do I know what COLUMN my cursor is at in Xcode?
提问by yonix
Sometimes I want to know what column my cursor is at, so I can see how many characters I have left til the print margin.
有时我想知道我的光标在哪一列,这样我就可以看到在打印页边距之前还剩下多少个字符。
This is a common functionality in most IDEs and text editors, but I couldn't find it in Xcode.
这是大多数 IDE 和文本编辑器中的常见功能,但我在 Xcode 中找不到它。
Is it possible to enable this or see it somewhere?
是否可以启用此功能或在某处看到它?
采纳答案by yonix
Turns out as for now (Xcode 4.3.2), it can't be done.
事实证明,就目前而言(Xcode 4.3.2),它无法完成。
My solution was eventually moving to AppCode :)
我的解决方案最终转向了 AppCode :)
回答by RAZ
Open Xcode's Preferences, go to the Text Editing tab, Editing subtab, and check the "Page guide at column: 80" box. That will display a vertical line at 80 columns in the editor.
打开 Xcode 的 Preferences,转到 Text Editing 选项卡,Editing 子选项卡,然后选中“Page guide at column: 80”框。这将在编辑器中的 80 列处显示一条垂直线。
回答by par
If you find this post, please log in to the Apple Bug Reportersite and report this as a bug against the Xcode developer tool. Mention that Xcode needs to provide an option to display the cursor column position and that the page guide is insufficient. Apple should mark it as a duplicate request of bug #8315595.
如果您发现了这篇文章,请登录Apple Bug Reporter站点并将其报告为针对 Xcode 开发人员工具的错误。提到Xcode需要提供显示光标列位置的选项,页面指南不足。Apple 应该将其标记为错误 #8315595 的重复请求。
The more requests they get the greater the likelihood they'll repair it and this isa very useful feature for many developers.
他们收到的请求越多,修复它的可能性就越大,这对许多开发人员来说是一个非常有用的功能。