一直使用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"?> <org.eclipse.ui.commands> <keyBinding commandId="com.aptana.editor.commands.comment" contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+/"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+/"/> <keyBinding commandId="com.aptana.editor.commands.comment" contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+/"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+TAB"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+TAB"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="ALT+CTRL+CR"/> <keyBinding commandId="com.pandora.ui.insert.ruby.source.insert_terminator" contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+;"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+M"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+M"/> <keyBinding commandId="org.eclipse.ui.window.maximizePart" contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="SHIFT+ESC"/> <keyBinding contextId="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId="hbuilder.accelerator" keySequence="ALT+/"/> <keyBinding contextId="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId="hbuilder.accelerator" keySequence="ALT+/"/> <keyBinding commandId="org.eclipse.ui.edit.text.contentAssist.proposals" contextId="org.eclipse.ui.contexts.dialogAndWindow" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+J"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+F6"/> <keyBinding contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+F6"/> <keyBinding commandId="org.eclipse.ui.window.nextEditor" contextId="org.eclipse.ui.contexts.window" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+TAB"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+F"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+F"/> <keyBinding commandId="com.aptana.editor.commands.Format" contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="ALT+SHIFT+F"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+R"/> <keyBinding contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+R"/> <keyBinding commandId="com.pandora.ui.copy.duplicate_line" contextId="org.eclipse.ui.textEditorScope" keyConfigurationId="hbuilder.accelerator" keySequence="CTRL+SHIFT+ARROW_DOWN"/> </org.eclipse.ui.commands> !/=
其实就是我们导出的快捷键XML配置