在Linux上的Eclipse中,是否可以单独使用箭头键来扩展包浏览器中的树节点?
作者:互联网
使用Eclipse时,我使用键盘箭头浏览包浏览器树.
在Windows中,我可以通过按→键来展开折叠节点.在Linux中我需要按Shift→.有没有办法重新配置这个,以便不需要Shift?
解决方法:
把它放到〜/ .gtkrc-2.0中,你应该好好去.左侧和右侧的行进行了所请求的更改,其余的只是我个人的补充,使树视图行为更像vim.希望有所帮助!
binding "gtk-binding-tree-view" {
bind "j" { "move-cursor" (display-lines, 1) }
bind "k" { "move-cursor" (display-lines, -1) }
bind "h" { "expand-collapse-cursor-row" (1,0,0) }
bind "l" { "expand-collapse-cursor-row" (1,1,0) }
bind "o" { "move-cursor" (pages, 1) }
bind "u" { "move-cursor" (pages, -1) }
bind "g" { "move-cursor" (buffer-ends, -1) }
bind "y" { "move-cursor" (buffer-ends, 1) }
bind "p" { "select-cursor-parent" () }
bind "Left" { "expand-collapse-cursor-row" (0,0,0) }
bind "Right" { "expand-collapse-cursor-row" (0,1,0) }
bind "semicolon" { "expand-collapse-cursor-row" (0,1,1) }
bind "slash" { "start-interactive-search" () }
}
class "GtkTreeView" binding "gtk-binding-tree-view"
然后重新启动Eclipse以应用新绑定
标签:linux,ubuntu,eclipse,keyboard-shortcuts,ide 来源: https://codeday.me/bug/20190926/1820710.html