简体   繁体   English

如何将 go 到特定字符偏移量

[英]How to go to a specific character offset

I'm on MacOS 10.15.7, using BBedit 13.5.5.我在 MacOS 10.15.7 上,使用 BBedit 13.5.5。 Under "Go ->" There is only Go to Line Number.在“转到->”下,行号只有 Go。 I want to go to character 145 of the file.我想要 go 到文件的字符 145。

Here's a crib from page 103 of the user manual (you'll find it on the Help menu):这是用户手册第 103 页的婴儿床(您可以在帮助菜单上找到它):

Alternatively, you can jump to an absolute character offset, by using the 'line:column' syntax but leaving the 'line' blank or specifying it as zero.或者,您可以跳转到绝对字符偏移量,方法是使用“line:column”语法但将“line”留空或将其指定为零。 For example, entering “0:1500” or “:1500” will cause BBEdit to place the insertion point before the 1500th character in the document.例如,输入“0:1500”或“:1500”将导致 BBEdit 将插入点放置在文档中第 1500 个字符之前。 (The range syntax works too; so you could use “0:12-0:56” to select characters 12 through 56.) (范围语法也有效;因此您可以使用“0:12-0:56”到 select 字符 12 到 56。)

Correct - if you select Go from the menu, it says, after selecting Line Number:正确 - 如果您从菜单中输入 select Go,它会在选择行号后显示:

:C character offset C in document :C 文档中字符偏移C

So, :20 goes to position 20. But, I have found it is off a few characters, perhaps it is not counting line feed.所以,:20 转到 position 20。但是,我发现它少了几个字符,也许它不算换行符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM