Over a million developers have joined DZone.

NetBeans Can Suggest Variable Names

DZone's Guide to

NetBeans Can Suggest Variable Names

· Java Zone
Free Resource

Just released, a free O’Reilly book on Reactive Microsystems: The Evolution of Microservices at Scale. Brought to you in partnership with Lightbend.

I am lazy and I type rather less than more if needed (which explains why my NetBeans tips are so short...). This applies to developing Java code as well. If the NetBeans editor can help me, I like it. When we create a variable in our Java code we can let NetBeans help us with typing the name of the variable. The following screenshot show the default names NetBeans suggests if we press Ctrl+Space after a type declaration:

The name is simply based on the type of the variable, which can be useful for simple code. We can even start typing the beginning of the variable name and then press Ctrl+Space as shown in the following screenshot and NetBeans will append the suggestion:

Strategies and techniques for building scalable and resilient microservices to refactor a monolithic application step-by-step, a free O'Reilly book. Brought to you in partnership with Lightbend.


Published at DZone with permission of Hubert Klein Ikkink, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}