Note: The IntelliJ idea used in this article is the version number of 14.1.2.
I. New project (Take the new Java project as an example)
Select "Create New Project" in.
Next you will see the following interface.
2.
Next always click Next. Until the following interface.
This is when we name this project in Project name for our correspondence.
Next click "Finish" to complete the project's new.
3. Create a new class.
Select the "src" folder, then right-click (two fingers at the same time). Then in the "new"----"Java class" can complete a new class.
For example, as seen in:
4. Implementation
For example, as seen in:
Second, the IntelliJ on Mac color Matching
1. Select "Configure"------"preferences" in the following interface
At this point you will see the following interface:
Select the "Appearance" and then change the "Theme" to "Darcula" (the default is None). Then change "Name" under "Override default ..." Below him to "Dialoginput". This is mainly to avoid the occurrence of garbled Chinese.
Then click "OK" to complete the configuration.
After the configuration, IntelliJ idea is a black theme.
Third, the configuration of shortcut keys
IntelliJ, the shortcut keys are configured in the same way under preferences in configure, only when the "KeyMap" is selected at this time. For example, as seen in:
You can configure the shortcut keys at this time.
Four, Mac IntelliJ idea is often used shortcut keys.
The code complements CTRL + Space, which is very likely to conflict with the shortcut keys of the Mac itself. At this point it is assumed that a search box might be needed to handle this. )
Delete line COMMAND + D
Gaze COMMAND +/
Import Package Command + SHIFT + O
Format Code COMMAND + SHIFT + F
Execute CTRL + ALT + R
Incremental Searchcommand + J implements a high-speed find function in the editor, contextual search with up and down arrows
Quick definition Command + Y It will pop up the window to display the contents of the method definition in the suggestion list. Suppose you're not sure which method to use
Find Nextcommand + K
Find Previouscommand + SHIFT + K
Specific method, class CTRL + click on class name, method
ctrl+alt+ Left/right back to the last viewed location
Command + F12 Similar to the function of Eclipse CTRL + O outline
Configuration of new, color, shortcut keys for projects under the INTELLIJ idea Environment under Mac