简体   繁体   中英

generate constructor using fields

In I use this shortcut for generating constructor : Right click → Source → generate constructor using fields , so Eclipse show fields and I select fields.

What is the shortcut for Android Studio ?

You can use the alt + insert combination to get all the insertion templates.

For more information, you can have a look at the Intellij documentation since Android Studio is based on .

对于 Mac,它是command + n ,它的显示选项如构造函数、getter 和 setter 等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM