So instead of typing that long System.out.println(::) statement, here is how you can autocomplete that code statement using tab expansion. Type in sout and press TAB key to see the output sout turn to System.out.println(“”);
Code completion
Code completion is useful when we don’t have a clue to complete our preferred lengthy statement using the above tab expansion feature. Moreover, the code completion feature automatically starts working the moment you code. All you have to do is press ENTER key when your preferred statement turns up in the top/first list.And in case, code completion isn’t working, press CTRL+SPACE to invoke it.
References
Line transpose
Using the above shortcut keys does not take into consideration the program’s scope. That is the code statement can even be moved up/down outside its method. If you want your code to be moved up and down within the method scope only then use PG UP and PG DN keys instead (along with ALT+SHIFT).
Refactor instead of replace
Double click your variable or method name and select Refactor>Rename.
Full-screen editor
Lastly, there is a concern for space management on Netbeans IDE’s editor window.; it’s small.If you love spacious workspace at home and prefers the same on your computers, then Netbeans editor has two ways to let you enjoy coding by occupying the maximum screen on your display.
- By clicking on the maximize window icon for the editor window
- Using CTRL+SHIFT+ENTER key.
I love the second option because I can get the feel of working on a simple text editor program but with just more capability.