V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dotfun
V2EX  ›  程序员

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

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