• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dotfun
V2EX  ›  程序员

想问一下 IntelliJ 家编辑器有没有文件头尾的快捷键?

  •  
  •   dotfun · Oct 28, 2021 · 2837 views
    This topic created in 1843 days ago, the information mentioned may be changed or developed.

    对于 IntelliJ 家的 IDE 我经常使用,所以里面的快捷键都弄成了我自定义的,基本上不会远离键盘主编辑区域,但是对于到文件头部和末尾的快捷键一直没有找到,现在是用 CMD+L 输入行号控制,我基本上过了一遍所有的快捷键,是我真的没有找到,还是真的没有这个的设置呢,如果有知道的给我说一下,十分感谢🙏

    9 replies  •  2021-10-29 15:05:32 +08:00
    zhaojiaiqing
    zhaojiaiqing
    Oct 28, 2021
    1
    win 的是 ctrl+home/end
    haozheliu
    haozheliu
    Oct 28, 2021
    2
    ideavim 某种程度上算是可以做到吧,但毕竟不是原生的。
    hope4tomorrow
    hope4tomorrow
    Oct 28, 2021
    3
    Macos:
    to head: Fn + Command + left arrow
    to tail: Fn + Command + right arrow
    dotfun
    dotfun
    OP
    Oct 28, 2021
    4
    @zjq07 感谢哈,找到了,KeyMap 设置里面是 Editor Actions -> Move Caret to Text Start/End
    dotfun
    dotfun
    OP
    Oct 28, 2021
    5
    @haozheliu 我想的还是对于现在的快捷键进行改造,引入了 ideaVim 会引入其他问题
    dotfun
    dotfun
    OP
    Oct 28, 2021
    6
    @hope4tomorrow 感谢🙏,我说一直没按出来,现在找到配置的地方了
    lanlanye
    lanlanye
    Oct 29, 2021
    7
    思考了一下发现我用什么 IDE 都差不多,操作逻辑全靠 Vim
    dotfun
    dotfun
    OP
    Oct 29, 2021
    8
    @lanlanye 虽然 vim 高效,但是我是 Emacs 党。主要不习惯模式的来回切换,而且各大 IDE 和 Emacs 的快捷键更好兼容。
    mingmingtiexue
    mingmingtiexue
    Oct 29, 2021
    9
    以前一个机缘巧合发现的
    全选 command+a
    文件头, 左方向键
    文件尾,右方向键
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1362 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:07 · PVG 01:07 · LAX 09:07 · JFK 12:07
    ♥ Do have faith in what you're doing.