简体   繁体   English

转到 Atom 编辑器中的最后一行

[英]Go to last line in Atom editor

I wonder if there is a way to navigate to the last line of the file in atom editor given that you don't it's number(for instance you've just opened log file).我想知道是否有办法导航到原子编辑器中文件的最后一行,因为您不是数字(例如您刚刚打开日志文件)。 Something similar to Shift + G in vim.类似于 vim 中的 Shift + G 的东西。

Use ctrl+a to select all and then press ↑ to go to the top or ↓ to go to the bottom of the file.使用 ctrl+a 全选,然后按 ↑ 转到顶部或 ↓ 转到文件底部。 For the beginning / end of a line try ctrl-← and ctrl-→ or if it doesn't work try the same with shift or alt.对于行的开头/结尾,请尝试 ctrl-← 和 ctrl-→,或者如果它不起作用,请尝试使用 shift 或 alt。

It works the same as it does in every other macOS application:它的工作方式与其他所有 macOS 应用程序中的工作方式相同:

  • Cmd + jumps to last line (or / end on a fullsize keyboard) Cmd + 跳转到最后一行(或 / end在全尺寸键盘上)
  • Cmd + jumps to first line (or / home on a fullsize keyboard) Cmd + 跳转到第一行(或 / home在全尺寸键盘上)

If it still doesn't work, a third-party package might interfere.如果它仍然不起作用,第三方软件包可能会干扰。 You can use the keybinding-resolver (it's bundled with Atom) to find out which package causes this conflict.您可以使用keybinding-resolver (它与 Atom 捆绑在一起)来找出导致此冲突的包。

  • ubuntu 20.04 Ubuntu 20.04
  • atom 1.50.0原子 1.50.0
  • ctrl + end to the file end ctrl + end 到文件尾
  • ctrl + home to the file head ctrl + home 到文件头

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

相关问题 在Atom编辑器中上下移动命令 - Command to move line up or down in Atom Editor 在Atom编辑器中重新格式化代码? - Reformat code in Atom editor? 如何在Macbook Pro上使用带有IDEA的keyshort转到第一行和最后一行? - How to go to the first and last line using keyshort with IDEA on macbook pro? Atom 编辑器中的快捷方式可移至 Mac 中的上一屏幕 - Shortcut In Atom editor to move to previous screen in Mac Atom Editor键盘快捷键,用于将选择内容拆分为行 - Atom Editor Keyboard Shortcut for Split Selections into Lines 在Atom文本编辑器中覆盖默认键绑定的问题 - Issue with Overriding Default Keybinding in Atom Text Editor 是否有键盘快捷键来选择要在Atom编辑器中进行编辑的列? - Is there a keyboard shortcut to select a column for editing in Atom editor? Atom编辑器-取消默认键绑定并重新分配 - Atom Editor - Unset default keybinding and reassign 带有Azerty Keyboard的Atom编辑器:哪些键可以折叠/展开线? - Atom editor with Azerty Keyboard : which keys to fold/unfold lines? 在 VS 代码中,如果我在单元格的最后一行,我希望向下箭头将我带到行尾,但在最后一行的末尾,go 到下一个单元格 - In VS code, I want the down arrow take me to end of line, if I'm in the last line of a cell, but at the end of the last line, go to next cell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM