I have seen that on Ecplise you can type sysout and then the shortcut will change to System.out.println();
I was wondering if there was a shortcut like this for Netbeans(currently 8.1).
To get System. out. println() line in eclipse without typing the whole line type sysout and press Ctrl + space.
In Netbeans 7.3, you can use Ctrl - Shift - Up or Ctrl - Shift - Down to duplicate the current line (the Up/Down determines where your cursor will be after the duplication). This is shown under the Source menu.
Editing and Refactoring Code in NetBeans To add a keyboard shortcut for a command: Choose Tools | Options and click the Keymap panel. In the Actions panel, navigate to a command that you want to change, and click Add. In the Add Shortcut dialog box, type in the key combination that you want to use and click OK.
Type "sout" then hit tab.
See https://netbeans.org/project_downloads/usersguide/shortcuts-80.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With