8. Modify shortcut keys and common shortcut keys

Source: Internet
Author: User

Modify the original code hint shortcut key

Common shortcut keys:


CTRL + spaces, code hints (conflicts with system input accelerator keys)
Here's how to modify it:
File-settings-keymap-main menu-code-completion
-Base-Change to alt+/

CTRL + N, you can quickly open class

Alt+insert, you can generate constructors/getter/setter, etc.

Ctrl+alt+t, the code can be wrapped within a block, for example: Try/catch

Ctrl+enter, import package, auto fix

Ctrl+alt+l, formatting code

Ctrl+alt+i, the selected code is automatically indented, this function is edited in the JSP text
can also work when

Ctrl+alt+o, optimizing imported classes and Packages

Ctrl+y, delete when moving forward

CTRL+X, deleting rows

Ctrl+d, copying rows

Alt+shift+up/down, move up/down one line

Ctrl+shift+up/down, move statement up/down


ctrl+/or ctrl+shift+/, comments (//or/**/)

Alt+left/right, Toggle Code View

Ctrl+shift+u, Case conversion

8. Modify shortcut keys and common shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.