Home
Sign Up
Sign In
V2EX
›
Java
Intellij IDEA 如何用快捷键为 Java 自动生成带参数的构造函数
ligx
·
Jan 5, 2017
· 4315 views
This topic created in 3440 days ago, the information mentioned may be changed or developed.
Intellij IDEA 如何用快捷键为 Java 自动生成带参数的构造函数?
IntelliJ
函数
Java
快捷键
6 replies
•
2017-01-06 14:07:46 +08:00
1
zts1993
Jan 5, 2017
alt+insert 然后选择 field...
不过我推荐 lombok
2
Lonely
Jan 5, 2017
会搜索吗?
3
aircjm
Jan 5, 2017
@
zts1993
lombok 不能热部署很不爽
4
ligx
OP
Jan 5, 2017
@
zts1993
我需要源码中实实在在存在构造函数,因为需要在构造函数上加注解。有没有快捷键自动生成带参数的构造函数?
5
twoyuan
Jan 5, 2017
@
ligx
一楼的方法就可以啊,会弹出个对话框,然后选择参数就可以了,前提是参数已经定义为 member 了
6
Ministor
Jan 6, 2017
mac option+enter
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
831 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 509ms ·
UTC 20:29
·
PVG 04:29
·
LAX 13:29
·
JFK 16:29
♥ Do have faith in what you're doing.
❯