简体   繁体   English

intellij-idea中的命令快捷方式

[英]Command shortcut in intellij-idea

In eclipse by typing "main" and pressing Ctrl + Space you can generate main method, and there are lots of other shortcuts like this. 在eclipse中,通过键入“ main”并按Ctrl + Space可以生成main方法,还有许多其他这样的快捷方式。 Is there anything like this in intellij-idea? intellij-idea中有这样的东西吗? and how can I assign them? 以及如何分配它们?

Depending upon your key configuration, you can type J for the Templates. 根据您的按键配置,您可以为模板键入 学家

Also see: What are the most useful Intellij IDEA keyboard shortcuts? 另请参阅: 最有用的Intellij IDEA键盘快捷方式是什么?

是的,只需键入sout并按Tab键,将为您生成带有完整签名的主要方法。

By default configuration shortcut for public static void main(String args[]) is: 默认情况下, public static void main(String args[])配置快捷方式是:

psvm + TAB psvm + TAB

psvm stands for P ublic S tatic V oid M ain psvm表示对于P ublic 小号 tatic V OID 中号 AIN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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