简体   繁体   中英

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. Is there anything like this in 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?

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

By default configuration shortcut for public static void main(String args[]) is:

psvm + TAB

psvm stands for P ublic S tatic V oid M ain

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