英文:
Sublime Text: cursor move to end of long list/dictionary
问题 {#heading}
例如,代码中有一个非常长的列表或字典,我需要翻页才能到达列表或字典的末尾。
有没有一种便捷的方法可以让我到达列表或字典的末尾,而不是手动多次按"Page Down"键?
the_list = [
"Liam",
"Noah",
...
...
...
"Oliver"]
英文:
For example there are very long list or dictionary in the code, that I need to flip pages to reach the end of the list or dictionary.
What's the convenient way that I can reach the end of the list or dictionary, instead of manually times of "Page Down"?
the_list = [
"Liam",
"Noah",
...
...
...
"Oliver"]
答案1 {#1}
得分: 2
这可以通过使用"转到"菜单 -> "跳转到匹配括号" -> 默认情况下 Ctrl+M 来完成。在括号内部时,它会跳转到末尾/闭合括号。当在末尾括号时,它会跳转到开始/开放括号。 英文:
This can be done by using the Goto
menu -> Jump to Matching Bracket
<kbd>Ctrl+M</kbd> by default.
When inside brackets, it jumps to the end/close bracket. When at the end bracket it jumps to the begin/open bracket.