In the previous article, we described how to automate batch generation of get and set functions. This method is generally used after declaring the data field of the class, which is more convenient and quick. Here are a few more ways to automatically generate the Get and set functions.
Step one: Press ctrl+1 in the declared data field:
Step Two: Click the last option of the Create getter and setter, click OK in the popup dialog box:
In the introduction of another method:
Step one: After declaring the data field of the class, enter set and hold alt+/:
Step two: With step one, enter get, and then press and hold alt+/:
Previous article, Eclipse Usage and Tricks VI: automatic generation of Get and set Method 1:
http://blog.csdn.net/ts1122/article/details/8852555
Next article, Eclipse Usage and tricks eight: add Try/catch1 automatically:
http://blog.csdn.net/ts1122/article/details/8886219
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Eclipse Usage and tricks seven: automatically generate get and set methods 2