
10 Useful Keyboard Shortcuts for NetBeans 6
- Transfer
After reading the topic, mikeborozdin remembered that he had not long ago switched from Zend Sudio for Eclipse to NetBeans. The fact is that for a long time I used Eclipse for php / python projects and was so used to it that I could not decide what kind of beast NB, on the advice of a colleague. When all the same I downloaded and installed NB I was surprised by the practicality and convenience of the latter. Around the same time on the Internet I found an article about useful hotkeys for NB, the translation of which is under the cut. I will be glad if she saves you time at work.
1. Move / copy up / down Selected text can be moved up or down using the combination
Ctrl-Shift- ↑ ↓ . If instead of Ctrl hold Alt - the selected tex will be copied.

>>
2. Capture inner / outer syntactic element Each time you press Alt-Shift-. All block contents are highlighted. Pressing it again increases the number of selected items. The Alt-Shift- combination works exactly the opposite. For example, the code block in the screenshot was highlighted by pressing Alt-Shift-.

3. Generate code skeletons The process of creating constructors, destructors, etc. You can automate it by simply pressing Alt-Insert and choosing what you need from the menu that appears.

4. Inplace renameIf you need to rename a class or method whose name is used more than once, this action can be accelerated by selecting it and pressing Ctrl-R . Now, when renaming an object, other similar objects will be automatically renamed, right up to pressing the Escape button.

5. Add / Remove comment lines Select one or more lines, press Ctrl- / , the lines will be commented out, as shown in the figure below. Pressing it again will have the opposite effect. In previous versions of NetBeans, two keyboard shortcuts were used for this purpose. Now they are combined into one.

6. Inspect members / hierarchy Class methods can be displayed and filtered using Alt-F12 .Ctrl-F12 will do the same for the whole file too.

7. Switch between documents If you have several documents open at the same time, press Ctrl and Tab to switch between them.

8. Jump to last edit It is often necessary to go to the line that you edited earlier, Ctrl-Q will help us with this. In addition, you can click the button in the upper left corner of the editor (see screenshot).

9. Bookmarks When you press Ctrl-Shift-Mthe current line is bookmarked and it will be possible to return to it in the future. If a line is added to bookmarks, an icon is displayed to the left of it until we remove it from the bookmarks using the same Ctrl-Shift-M combination .

10. Highlight exit points Want to see all the exit points (return) from a method? Just set the cursor to the return type in the method declaration.

1. Move / copy up / down Selected text can be moved up or down using the combination
Ctrl-Shift- ↑ ↓ . If instead of Ctrl hold Alt - the selected tex will be copied.

>>
2. Capture inner / outer syntactic element Each time you press Alt-Shift-. All block contents are highlighted. Pressing it again increases the number of selected items. The Alt-Shift- combination works exactly the opposite. For example, the code block in the screenshot was highlighted by pressing Alt-Shift-.

3. Generate code skeletons The process of creating constructors, destructors, etc. You can automate it by simply pressing Alt-Insert and choosing what you need from the menu that appears.

4. Inplace renameIf you need to rename a class or method whose name is used more than once, this action can be accelerated by selecting it and pressing Ctrl-R . Now, when renaming an object, other similar objects will be automatically renamed, right up to pressing the Escape button.

5. Add / Remove comment lines Select one or more lines, press Ctrl- / , the lines will be commented out, as shown in the figure below. Pressing it again will have the opposite effect. In previous versions of NetBeans, two keyboard shortcuts were used for this purpose. Now they are combined into one.

6. Inspect members / hierarchy Class methods can be displayed and filtered using Alt-F12 .Ctrl-F12 will do the same for the whole file too.

7. Switch between documents If you have several documents open at the same time, press Ctrl and Tab to switch between them.

8. Jump to last edit It is often necessary to go to the line that you edited earlier, Ctrl-Q will help us with this. In addition, you can click the button in the upper left corner of the editor (see screenshot).

9. Bookmarks When you press Ctrl-Shift-Mthe current line is bookmarked and it will be possible to return to it in the future. If a line is added to bookmarks, an icon is displayed to the left of it until we remove it from the bookmarks using the same Ctrl-Shift-M combination .

10. Highlight exit points Want to see all the exit points (return) from a method? Just set the cursor to the return type in the method declaration.
