Java NetBeans Shortcuts
System.out.println(“”)
Type sout and then press the TAB key for NetBeans to insert System. out. println(“”) with the cursor positioned within the double quotes.
Variables and Datatypes
Type st and then press the TAB key for NetBeans to insert String followed by the cursor.
Type db and then press the TAB key for NetBeans to insert double followed by the cursor.
Type fl and then press the TAB key for NetBeans to insert float followed by the cursor.
Type sh and then press the TAB key for NetBeans to insert short followed by the cursor.
Type bo and then press the TAB key for NetBeans to insert boolean followed by the cursor.
Type psf and then press the TAB key for NetBeans to insert private static final followed by the cursor.
Type psfb and then press the TAB key for NetBeans to insert private static final boolean followed by the cursor.
Type psfi and then press the TAB key for NetBeans to insert private static final int followed by the cursor.
Type psfs and then press the TAB key for NetBeans to insert private static final String followed by the cursor.
Classes and Modifiers
Type cl and then press the TAB key for NetBeans to insert class followed by the cursor.
Type ex and then press the TAB key for NetBeans to insert extends followed by the cursor.
Type pu and then press the TAB key for NetBeans to insert public followed by the cursor.
Type pr and then press the TAB key for NetBeans to insert private followed by the cursor.
Decision Structures
Type cn and then press the TAB key for NetBeans to insert continue followed by the cursor.
Type df and then press the TAB key for NetBeans to insert default followed by the cursor.
Type fy and then press the TAB key for NetBeans to insert finally with curly brackets followed by the cursor.
Type le and then press the TAB key for NetBeans to insert length followed by the cursor.
Type wh and then press the TAB key for NetBeans to insert while followed by the cursor.
Type br and then press the TAB key for NetBeans to insert break followed by the cursor.
Comments and Misc
Type bcom and then press the TAB key for NetBeans to insert a multiline comment /**/ followed by the cursor.
Type fa and then press the TAB key for NetBeans to insert false followed by the cursor.
Type fi and then press the TAB key for NetBeans to insert final followed by the cursor.
Type eq and then press the TAB key for NetBeans to insert equal followed by the cursor.