New projects in intellij idea environment under Mac, configuration of color and shortcut keys, and intellijidea
Note: The intellij idea used in this article is 14.1.2.
1. Create a project (taking creating a Java project as an example)
Select "create new project ".
Next you will see the following interface.
2,
Click next. Until the following page is displayed.
At this time, we will give a Name to the Project in the "Project Name" letter.
Click "Finish" to create a project.
3. Create a class.
Select the "src" directory, right-click (press Both fingers), and then create a Class in "new" ---- "Java Class.
As shown in:
4. Run
As shown in:
2. intellij's color scheme on mac
1. Select "configure" ------ "preferences" on the following page"
At this time, you will see the following interface:
Select "appearance" and change "Theme" to "Darcula" (the default value is None ). Then, change "Name" under "Override default..." to "DialogInput ". This is mainly to avoid Chinese garbled characters.
Click "OK" to complete the configuration. After the configuration is complete, intellij idea has a black topic.
3. Shortcut Key Configuration
In intellij, the shortcut key configuration is also under the preferences in Configure, but the selected "KeyMap", as shown in:
In this case, you can configure the shortcut key.
4. Common shortcut keys for intellij idea on mac.
Code Completion Ctrl + space (this shortcut key may conflict with the Mac shortcut key. At this time, if you press this key, it may be a search box that needs to be processed .)
Delete row Command + D
Comment Command +/
Import package Command + shift + O
Format code Command + shift + F
Run Ctrl + Alt + R
Incremental SearchCommand + J implement quick search in the editor, and use the up and down arrows to perform context search
Quick Definition Command + Y it will pop up the content of the method Definition in the recommended list. If you are not sure which method to use
Find NextCommand + K
Find previuscommand + shift + K
Detailed method, class Ctrl + Click class name, Method
Ctrl + Alt + left/right return the previous browsing position
Command + F12 is similar to the outline function of ctrl + O in eclipse
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.