Shortcut key changes in NetBeans 6.0

There are a lot of good things to say about NetBeans 6.0. But if you are upgrading from earlier versions, be aware of these changes in keyboard shortcuts.

TasksNetBeans 5.xNetBeans 6.0
Expand code template on ...SpacTab
Format codeCtrl-Shift-F Alt-Shift-F
Fix importsAlt-Shift-FAlt-Shift-I
Go to typeAlt-Shift-OCtrl-O
Toggle java commentsCtrl-Shift-T Alt-Shift-W in beta 2,
Ctrl-Slash in RC 1
Toggle bookmarkCtrl-F2Supposed to be Ctrl-Shift-M,
but not working.
No such shortcut in the menu, either
Go to next bookmarkF2Ctrl-Shift-Period
Go to previous bookmarkShift-F2Ctrl-Shift-Comma

These are what I have noticed so far. Now I will have to change my keyboard shortcut habits. It is inconvenient, to say the least. Some of these changes will only cause confusion. Why would one think Tab, rather than the old Space, should be pressed for code completion? I have been using Space for code completion in all IDE, even including VIM. The only place I use Tab for completion is in tcsh or bash. Maybe this idea was borrowed from tcsh or bash? Thankfully, they didn't choose Esc.

Another source of confusion, Ctrl-Shift-F is pretty much the standard shortcut for code formatting. It works this way in NetBeans releases prior to 6.0, and Eclipse as well. Now NetBeans 6.0 slated Ctrl-Shift-F for a new feature called Find in Projects. To format code in NetBeans 6.0? one need to press Alt-Shift-F, which in NetBeans 5.x stands for Fix Imports.

Technorati Tags: ,


Anonymous said...

For cleaning up the imports its
ctrl shift I

Anna said...

Great and Useful Article.

Online Java Course

Java Online Training

Java Course Online

J2EE training

online J2EE training

Best Recommended books for Spring framework

Java Interview Questions

Java Training Institutes in Chennai

Java Training in Chennai

J2EE Training in Chennai

java j2ee training institutes in chennai

Unknown said...

I enjoyed on reading your blog post. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Please visit my website, Friv 4000 Games is where all the free friv games.
Friv 4000

eMexoT said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

Internet Of Things training in electronic city