Intellij 常用命令

Find a class

Ctrl + N

Add Unimplemented or Override Methods

The default shortcut is CTRL-I and CTRL-O.


To add a line

  • Press Shift+Enter to add a new line after the one where the caret is currently located and move the caret to the beginning of this new line.

  • To duplicate a line or fragment

  1. Place the caret at the line to be duplicated, or select the desired fragment of text.
  2. Press Ctrl+D.

To remove a line

  • Press Ctrl+Y to delete the line at caret.

To move a line

  1. Place the caret at the line to be moved.
  2. Do one of the following:
    • On the main menu, choose Code | Move Line Up or Code | Move Line Down.
    • Press Shift+Alt+Up or Shift+Alt+Down.

To move a statement up or down

  1. Select a statement to be moved, or just place the caret at the first or last lines of a multi-line statement. Note that if moving a statement is not allowed in the current context, the commands will be disabled.
  2. Do one of the following:
    • On the main menu, choose Code | Move Statement Up/Move Statement Down.
    • Press Ctrl+Shift+Up or Ctrl+Shift+Down.

To move code element to the left or to the right

  1. Place the caret at the desired code element, or select the elements to be moved.
  2. Do one of the following:
    • On the main menu, choose the commands Code | Move Element Left or Code | Move Element Right
    • Press Ctrl+Shift+Alt+Left or Ctrl+Shift+Alt+Right


How do you input commandline argument in IntelliJ IDEA

Windows, Linux, some Macs:

ALT+SHIFT+F10, Right, E, Enter, Tab, enter your command line parameters, Enter. ;-)

Mac with "OS X 10.5" key schema:

CTRL+ALT+R, Right, E, Enter, Tab, enter your command line parameters, Enter.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值