Eclipse 快捷键 转换为Netbeans 快捷键
一直使用netbeans IDE开发,习惯了netbeans的快捷键,最近要开发个app就选择了H5。 接着使用了HBuilder (基于Eclipse开发)
总体来讲这个IDE还可以,不管是代码提示、流畅度、字体等感觉还可以,但就是快捷键太不爽了,一不留神按一个快捷键还以为能达到netbeans快捷效果,
所以用了10分钟把Eclipse的快捷键换成netbeans(只换了部分,原理相同)
选择: 工具-- 首选项 -- 常规 -- 快捷键
要替换的快捷键
说明 | Eclipse[KB] | Netbeans[KB] |
激活代码助手 | Alt+/ | Ctrl+J |
整理代码格式 | Ctrl+Shift+F | Shift+Alt+F |
重复插入当前行或选中区域 | Ctrl+Shift+R | Ctrl+Shift+down |
插入词语结尾符 | Ctrl+alt+Enter | Ctrl+; |
切换下一个编辑器 | Ctrl+F6 | Ctrl+TAB |
活动视图或编辑器最大化 | Ctrl+M | Shift+Esc |
………… | ………… | ………… |
替换后在窗体里面的用户栏能看到一个大写 “U” 表示user用户自定义的
完成快捷键替换后在试试编辑器,是不是感觉很爽,为了保存这个快捷键配置我们可以把这个配置导出,下一次or 换电脑了都可以直接导入快捷键配置
选择 文件 -- 导出
导出为.epf 文件
选择导入也是一样
我们查看导出的epf文件:
#Sat May 16 15:37:03 CST 2015 file_export_version=3.0 @org.eclipse.ui.workbench=3.7.1.v20120104-1859 /instance/org.eclipse.ui.workbench/org.eclipse.ui.commands=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<org.eclipse.ui.commands>\r\n<keyBinding commandId\="com.aptana.editor.commands.comment" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+/"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+/"/>\r\n<keyBinding commandId\="com.aptana.editor.commands.comment" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+/"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+TAB"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+TAB"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="ALT+CTRL+CR"/>\r\n<keyBinding commandId\="com.pandora.ui.insert.ruby.source.insert_terminator" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+;"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+M"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+M"/>\r\n<keyBinding commandId\="org.eclipse.ui.window.maximizePart" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="SHIFT+ESC"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId\="hbuilder.accelerator" keySequence\="ALT+/"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId\="hbuilder.accelerator" keySequence\="ALT+/"/>\r\n<keyBinding commandId\="org.eclipse.ui.edit.text.contentAssist.proposals" contextId\="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+J"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+F6"/>\r\n<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+F6"/>\r\n<keyBinding commandId\="org.eclipse.ui.window.nextEditor" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+TAB"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+F"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+F"/>\r\n<keyBinding commandId\="com.aptana.editor.commands.Format" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="ALT+SHIFT+F"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+R"/>\r\n<keyBinding contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+R"/>\r\n<keyBinding commandId\="com.pandora.ui.copy.duplicate_line" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="hbuilder.accelerator" keySequence\="CTRL+SHIFT+ARROW_DOWN"/>\r\n</org.eclipse.ui.commands> \!/=
其实就是我们导出的快捷键XML配置
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。