Showing posts with label productivity. Show all posts
Showing posts with label productivity. Show all posts

Wednesday, August 12, 2009

SHIFT+Click to close all Editor Tabs and ALT+Click to Close all others

Tips covered in this post:

  • How to close all the editor tabs in NetBeans IDE?
  • How to close all other editor tabs except the current one in NetBeans IDE?
  • How to use mouse and keyboard combination for productivity in NetBeans IDE
SHIFT+Click
When there are many editor tabs open in NetBeans IDE and we want to close them all, we have the keyboard shortcut of CTRL+SHIFT+W, but this can also be done using mouse and a single click. Just hold the SHIFT key and click on any of the editor tab close marks and wooooosh all the editor tabs will be closed.

ALT+Click (Option+Click in Mac)
When there are many editor tabs open and we want to keep only one tab open and close all the others in a single click, just hold the ALT button and click on the close button of the editor tab you want to keep open. This will close all the other editor tabs and only the one you clicked is retained.

with regards
Tushar Joshi, Nagpur

Friday, April 18, 2008

Top 10 NetBeans IDE Keyboard Shortcuts I use the most

Initially for exploration of the features working with mouse may feel fancy but as you continue using the tool for project development and want to concentrate more on task in hand you start finding ways to do things faster. NetBeans IDE 6.1 provides many keyboard shortcuts if used judiciously they can save a lot of developers time.

I use certain shortcut keys more often than other keys. This is a list of the keyboard shortcuts for NetBeans IDE which I use in my day to day development tasks.

1. CTRL+F12 Navigate to Member

When my class becomes big and there are many methods in the class navigating to a specific method becomes easy with this dialog box.

As soon as I start typing the name of the desired method the dialog contents are filtered for me to select from matching method names starting from what I have typed.


2. SHIFT+ESC Toggle Editor Maximize / Minimize

I like working in the fully maximized editor window. SHIFT+ESC maximize the editor window for me and I can work with full concentration. When I need to see other windows I can again press SHIFT+ESC and I get the normal layout of windows back.


3. CTRL+7 Activate Navigator Window

When I am in maximized editor mode and I need to navigate to some method, either I choose the method 1 as described above or sometimes I use CTRL+7 to activate the navigator window. The windows other than editor in NetBeans follow a specific pattern, you can type characters and a quick search window appears which selects the most appropriate item from the window according to what is typed in this quick search window.


4. CTRL+/ Toggle Comment

For quick commenting of some lines I select those lines and press CTRL+/ to comment all those selected lines. The same lines can be uncommented again by following the same process.


5. ALT+SHIFT+F Format Code

This key combination formats my code to the standard Java Code Formatting template.

6. CTRL+0 Activate the Editor

When I am in the Navigator window through the shortcut CTRL+7 and I want to navigate back to the editor i press CTRL+0. I do not need mouse to do this navigation and save a lot of time in navigating between windows.

7. CTRL+# Activate different windows

These shortcuts are handy for navigating between the different windows. They become very important when I work in maximized editor mode.
CTRL+1 - Project Window
CTRL+2 - Files Window
CTRL+3 - Favorite Window
CTRL+4 - Output Window
CTRL+5 - Services window
CTRL+6 - Tasks Window

8. ALT+INSERT Generate Code

When I need to generate getter setters or constructors this key combination brings the Code Generation menu


9. ALT+F7 Find Usages

Many a times I want to track all the occurrences of a particular method call. Who is calling my method. This Find Usages dialog comes handy in such times.


10. CTRL+F4 Close Editor Window and CTRL+SHIFT+F4 Close All Editor Windows

I use these keys often to close my editor windows and save many mouse clicks.

with regards
Tushar Joshi, Nagpur

Sunday, April 13, 2008

Seven Habits of highly effective NetBeaner (NetBeans IDE user)

First, let me tell you about the word NetBeaner in title of this post. I have read NetBeans developers, technical writers and bloggers using words like "Happy NetBeaning". I think this is a way people show their affection towards the platform, by tweaking the name NetBeans and making a verb out of it, adjective out of it. I also used it here to describe people who like to experiment with NetBeans, who use Netbeans and often say it through their blogs.

Now coming to Seven Habits of highly effective NetBeaners. I don't have to tell you, the reader, more about the phrase Seven Habits. It comes from a popular book written by Stephen Covey. When I though about some good habits NetBeaners should have I came up with some points which I will like to share with you.

1. Be proactive
If you like NetBeans tell that to the world. Blogging is the easiest and best way to shout about your experiences. Blog about your experiences. Tell others why you liked particular feature of NetBeans. To write about something makes you think about it, which is useful for deep exploration of the tool.

2. Begin with end in mind
We must remember that the IDE is a tool to make us develop projects efficiently. Learning IDE to its depth and width will make us productive for development of our projects. So keep in mind that it is the project, which is the end product of all the learning associated with Netbeans. It happens sometimes that we fell into love with the tool so much that we forget the end and the project. Loving the tool is good as it makes the learning process passionate but we shall also keep the project in mind.

3. First things first
Start with what you know about Netbeans by using it in your project. Just because you are new to Netbeans cannot be the reason of staying away from it. You can start with what you have and while developing your project keep learning new tips and tricks about the Netbeans IDE. Adding NetBeans related blogs in your favorite Feed Reader and reading new posts frequently can be a good source of learning new things in the NetBeans platform.

4. Think win win
When we like some tool it does not mean all other tools in the world are not good. Do not make the users of other IDE feel bad just because they do not use NetBeans. I believe in presenting all the goodness of NetBeans to all the people when ever it is possible to me. Using NetBeans does not mean I hate all the existing IDEs in the world. I prefer even testing other IDEs and checking interesting features they have. I appreciate the new features and add them to the wish list for NetBeans if those features are popular and good enough. There will always be some people who have a different requirement or perspective than me. Some people will use other IDEs and I must respect their choice.

5. Seek first to understand
Part of learning NetBeans is also sharing your knowledge with other knowledge seekers. Join nbusers mailing list. This is the mailing list where other NetBeans users discuss about the usage and their difficulties in NetBeans. I can also ask my own problems here. Even if I do not have a problem with NetBeans, still the discussion going on here, helps me learn more things in Netbeans. Reply to mails where you know the solution. This helps the community and you to learn more. Learn from questions and experiment new things in the NetBeans IDE. Join NetBeans Zone and post NetBeans related links there to share with the world. Take part in Netbeans related discussions on NetBeans Zone and put your opinion honestly.

6. Synergize
Join an open source project related to NetBeans. When you find issues and bugs, report them to the NetBeans IssueZilla so the developers can reproduce them and fix them in the next version of NetBeans. Pour your ideas in the mailing lists. Invent new solutions through discussions in mailing lists.

7. Sharpen the saw
Watch the new and noteworthy about the newest version of NetBeans. Learn all the newly added features and keep yourself acquainted with most of the features of the IDE so they can help you become productive in your projects. Join the nbdev mailing list to know about the new developments happening in NetBeans platform. Write new modules to make the IDE better. This can be done either by joining any open source module project or starting your own module project as an open source project.

with regards
Tushar Joshi, Nagpur