Unbind F1 'Help' keyboard shortcut in eclipse

后端 未结 4 960
执笔经年
执笔经年 2020-12-30 02:44

How can you unbind the F1 keyboard shortcut in Eclipse? I have unbound it using the Windows -> Preferences -> General -> Keys, but it appears to have no effect (

4条回答
  •  自闭症患者
    2020-12-30 03:13

    It doesn't matter that F1 generates a help event on Windows. As explained here, SWT generates both a help event and a key event when F1 is pressed. You can map things to F1 and it will work, but it will still also open help.

    To fix this, delete the JAR file in the plugins directory that starts with "org.eclipse.help.base". Help will no longer open!

    Edit: in fact, I use this to smoke Eclipse junk:

    rm -rf readme
    rm -rf *.html
    
    rm -rf features/org.eclipse.aether*
    rm -rf features/org.eclipse.cvs*
    rm -rf features/org.eclipse.egit*
    rm -rf features/org.eclipse.gef*
    rm -rf features/org.eclipse.help.ui*
    rm -rf features/org.eclipse.jgit*
    rm -rf features/org.eclipse.m2e*
    rm -rf features/org.eclipse.mylyn*
    rm -rf features/org.eclipse.team.cvs*
    rm -rf features/org.eclipse.wb*
    rm -rf features/org.eclipse.wst*
    rm -rf features/org.eclipse.xsd*
    rm -rf features/org.eclipse.epp.mpc*
    rm -rf features/org.eclipse.buildship*
    rm -rf features/org.eclipse.oomph*
    rm -rf features/org.eclipse.recommenders*
    
    rm -rf plugins/org.eclipse.aether*
    rm -rf plugins/org.eclipse.cvs*
    rm -rf plugins/org.eclipse.egit*
    rm -rf plugins/org.eclipse.gef*
    rm -rf plugins/org.eclipse.help.ui*
    rm -rf plugins/org.eclipse.jgit*
    rm -rf plugins/org.eclipse.m2e*
    rm -rf plugins/org.eclipse.mylyn*
    rm -rf plugins/org.eclipse.team.cvs*
    rm -rf plugins/org.eclipse.wb*
    rm -rf plugins/org.eclipse.wst*
    rm -rf plugins/org.eclipse.xsd*
    rm -rf plugins/org.eclipse.epp.mpc*
    rm -rf plugins/org.eclipse.buildship*
    rm -rf plugins/org.eclipse.oomph*
    rm -rf plugins/org.eclipse.recommenders*
    

提交回复
热议问题