码迷,mamicode.com
首页 > Web开发 > 详细

Eclipse 快捷键 转换为Netbeans 快捷键

时间:2015-05-16 16:20:35      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

 

一直使用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配置

Eclipse 快捷键 转换为Netbeans 快捷键

标签:

原文地址:http://www.cnblogs.com/dcb3688/p/4507922.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!