Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a shortcut for System.out.println on Netbeans? [duplicate]

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).

like image 878
Dimitrios Pilitsis Avatar asked Jul 01 '16 08:07

Dimitrios Pilitsis


People also ask

Is there a shortcut for system out Println?

To get System. out. println() line in eclipse without typing the whole line type sysout and press Ctrl + space.

How do I copy the same line in Netbeans?

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.

How do I create a shortcut key in Netbeans?

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.


1 Answers

Type "sout" then hit tab.

See https://netbeans.org/project_downloads/usersguide/shortcuts-80.pdf

like image 175
Mossroy Avatar answered Oct 03 '22 11:10

Mossroy