New projects in intellij idea environment under Mac, configuration of color and shortcut keys, and intellijidea

Source: Internet
Author: User

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.

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.