Best Java and Android development IDE---IntelliJ idea usage tips

Source: Internet
Author: User

Reprint please specify the website: Http//:www.cnblogs.com/johntsai

Eclipse has been used in the past, listening to the introduction of idea is very good, but also in order to later turn to Android studio Mat. began to try to develop it with idea.

This article focuses on the use of idea techniques.

Idea full name IntelliJ ideas, a Java language development integration Environment, IntelliJ is recognized as one of the best Java development tools in the industry, especially in smart Code helper, code auto hint, refactoring, Java EE support, Ant, JUnit, CVS integration, code review , innovative GUI design and other aspects of the function can be said to be extraordinary. Idea is the product of JetBrains company.

--Baidu Encyclopedia

Download Installation

Official website: https://www.jetbrains.com/Download website: https://www.jetbrains.com/idea/download/

There are two versions: version Ultimate and version community. The former is free for 30 days and the latter is free forever. People choose to download according to their own needs.

font background theme settings

Font:

IDE font settings: File-->settings-->look and feel-->override default fonts By-->name

To modify the font of the code:

File-->settings-->editor-->color&fonts-->font-->save As (create your own font)-select font type and size

To change the theme of the IDE:

File-->settings-->appearance-->theme

common shortcut keys

   Query shortcut keys

CTRL + N Find class
Ctrl+shift+n Finding files
Ctrl+shift+alt+n find a method or variable in a class
Cirl+b finding the source of the variable
Ctrl+alt+b Find all the subcategories
Ctrl+shift+b the class of finding variables
Ctrl+g Locating rows
Ctrl+f finding text in the current window
Ctrl+shift+f finding text in a specified window
Ctrl+r replacing text in the current window
Ctrl+shift+r replacing text in a specified window
Alt+shift+c Finding the modified file
Ctrl+e recently opened files
F3 down find where the keyword appears
Shift+f3 up a keyword where it appears
F4 finding the source of a variable
Ctrl+alt+f7 selected characters find where the project appears
Ctrl+shift+o Popup Display Find content

Automatic Code

ALT + ENTER import package, auto fix
Ctrl+alt+l Formatting Code
Ctrl+alt+i Auto Indent
Ctrl+alt+o Optimizing imported classes and Packages
Alt+insert generate code (such as Get,set method, constructor, etc.)
Ctrl+e recently changed code
Ctrl+shift+space Auto-Complete code
CTRL + Space Code hints
Ctrl+alt+space class name or interface name hint
Ctrl+p Method Parameter Hints
CTRL+J Automatic Code
Ctrl+alt+t put the selected code in try{} if{} else{}

Copy Shortcut

Ctrl+d Copying rows
Ctrl+x Cut, Delete row

other

Cirl+u Case Switching
CTRL + Z backwards
Ctrl+shift+z forward
CTRL+ALT+F12 Explorer open Folder
Alt+f1 find the directory where the files are located
Shift+alt+insert Vertical Edit mode
ctrl+/Notes//
ctrl+shift+/Comment/*...*/
Ctrl+w selected code, continuous press will have other effects
Ctrl+b quickly open the class or method at the cursor
alt+←/→ Switch Code View
ctrl+alt←/→ return to last edited position
Alt+↑/↓ fast positioning between methods
Shift+f6 Refactoring-Renaming
CTRL+H Display class structure diagram
Ctrl+q displaying comment documents
Alt+1 quickly open or hide the engineering panel
The Ctrl+shift+up/down code moves up/down.
Ctrl+up/down cursor jumps to the first or last line
ESC cursor returns to edit box
Shift+esc the cursor back to the edit box, close the useless window

The best thing about idea is that you can change the shortcut keys to your familiar IDE style!!!

Can be modified for Eclipse and Visual Studio, great!

Modification Method: File-->settings-->keymap

Java and Android will be developed in the future with idea ~

If you think this article is helpful to your study work, please recommend, thank you!

Best Java and Android development IDE---IntelliJ idea usage tips

Related Article

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.