Idea First Use

Source: Internet
Author: User

Key notes: IntelliJ idea is not the concept of a workspace like Eclipse ( Workspaces ), the largest unit is Project . If you are observing multiple projects at the same time, the solution IntelliJ idea provides is to open multiple project instances, which you can understand as opening multiple project Windows.

command to Create New Project create a new project.

command to Import Project import an existing project.

command to Open open an existing project, you can open the Eclipse project directly, but because the project configuration under the IDE is different, the project needs to be configured.

The Check out from Version Control Checkout command can be used on the project address on the server to project on Github above or on other Git managed servers.

Create a new HTML project

IntelliJ idea the default interface is hidden Toolbar and Tool Buttons , generally, will be turned on.

IntelliJ idea Theme, font, edit area theme, file encoding modification

Subject modification

    • The label shows where IntelliJ idea modifies the subject, and on the Windows system IntelliJ IDEA15 provides three sets of topics by default: Darcula , IntelliJ Windows . In addition Darcula to the black theme, the other three sets are in white background.
    • The theme of the choice of people according to their own preferences can. Changing the theme requires restarting IntelliJ idea to see the effect.

Enter the Setup screen

Theme Font Modification

    • As shown in the callout, the IntelliJ idea theme font changes to be checked first Override default fonts by . The default IntelliJ idea is not recommended to modify, but because the font is divided into Chinese and does not contain Chinese, the general English-speaking countries do not need to worry about garbled problems, and we need.
    • The aesthetic of the font is different for everyone, but as mentioned in the previous paragraph, the font modification here needs to know a premise, that is, you choose the font must contain Chinese, such as Microsoft Ya Black and the song body This kind contains the Chinese language, Courier New and Monaco This kind is only simple English font.
    • If you choose the font does not contain Chinese, it may appear in many places similar 口口口口口 to the garbled problem, such as the file name contains Chinese, the font is Chinese name will become 口口口口口 .
    • When modifying the theme font of IntelliJ idea, it is not recommended to make the font large, because many people encounter a situation where the display resolution is low, the theme font is large, some options in IntelliJ idea's Tools menu, right-click menu options are beyond the resolution display range, There is no way to be selected. Of course, if you have to change the font size and do not have a large-resolution display, it is possible to Menus and Toolbars delete some of the menus that you think are not available through IntelliJ idea, but it is generally not recommended.
    • It is also important to note that if you are looking for a newly installed font when you open IntelliJ idea, you will have to restart IntelliJ to find the newly installed font in the drop-down list.

Code Edit Font Modification

    • As shown in callout 1, the default IntelliJ idea is that you cannot modify the font directly on the default code template, and you need to first Save As copy it before you can modify it. This design is also true of many other settings in IntelliJ idea, so if you see a button like this, you Copy Save As 'll think of it as such.
    • As shown in callout 2, the checkmark indicates that the Show only monospaced fonts filter displays the equal-width font on the system. Because the Windows system is not a large number of wide fonts, check this option appears in the drop-down font can be selected very few. When unchecked, all installed fonts on the system can be displayed.
    • As shown in callout 3, where the encoded font has the first font ( Primary font ) and the second font ( Secondary font ). When some characters are not supported in the first font, they are supported using a second font.
    • I am personally accustomed to: English font use Monaco , because this font does not support Chinese, so I set this to the first font, the second font use Yahei Consolas Hybrid to support, the font contains Chinese. Neither of these fonts comes with the system and you need to download the installation yourself.
    • If your first font does not contain Chinese, and the second font contains Chinese, then there will still be problems in some places 口口口口口 , such as Ctrl + Shift + N when searching for files, if you input Chinese will become 口口口口口 , my personal file name is not many Chinese, so I tolerated this situation. If you're not willing to tolerate this situation, it's back to the beginning: The first font contains Chinese.

Console output Font modification

    • For the console output content font modification, there are many IntelliJ idea newcomers in the output when the reason for garbled is because there is no setting here.
    • Console output Font modification is the same as code editing font modification , so there is no explanation.

Edit Area theme Modification, edit area theme, that is, the code writing area theme modification.

Edit Area Theme Details modified

    • Callout 1 is a common and modifiable detail
    • Callout 2 is a modifiable property, and not every detail can be modified for all properties. For example, the details: Default text can be checked Bold , but it Caret row is not checked Bold , because only the text has bold attribute requirements.
    • Callout 3 is the modified preview area, and the preview area is dynamically displayed in real time.
    • In the General district, I have often modified the following:
  • Default text, which refers to the default code text, and I generally modify its Background properties.
  • Caret row, which refers to the line where the cursor is located, I generally modify its Background properties.
  • Vertical indent guide, which refers to a vertical indent line, I generally modify its Foreground properties.
  • Identifier under caret, which is what the same identifier renders at the cursor location, and I generally modify its Background properties.
  • Text search result, which refers to the style of matching characters in Find mode, I generally modify its Background properties.

File Encoding Modification

As shown in callout 1, the IDE's encoding defaults UTF-8 to the Project Encoding default UTF-8 .

    • As shown in callout 2, IntelliJ idea can have a Properties special encoding setting for a file, and it is generally recommended to change it to one of UTF-8 the key attributes Transparent native-to-ascii conversion ,
    • As shown in callout 3, for Properties files, important attributes are Transparent native-to-ascii conversion mainly used for conversions ascii , which are generally checked, otherwise Properties the comments in the file are not displayed in Chinese.
    • As shown in callout 4, IntelliJ idea supports encoding settings for directories and files in addition to supporting encoding for the entire Project. If you want to encode the directory, there may be a need to Convert encode the pop-up operation selection, it is strongly recommended to do a file backup before conversion, otherwise the conversion process can be garbled, can not be restored.

Compilation error due to encoding problem
  • Compile the error: 找不到符号 , and 未结束的字符串文字 other solutions:
  • Since UTF-8 encoded files are divided 有BOM 无BOM , by default the compiler used by IntelliJ idea is javac , and this compilation can only compile 无BOM files, and many Eclipse users are using IntelliJ idea to develop E This problem is often encountered when Clipse a project. The main reason is that the compiler for Eclipse is the compiler Eclipse that this compiler supports 有BOM . The workaround is to make BOM removal for this file.
  • Batch removal of the BOM, you can Google: 批量去除 BOM , and 批量转换无 BOM Other keywords, the network has provided a variety of programs.
  • This is generally not recommended except by removing the BOM and setting the compiler for IntelliJ Eclipse idea.
  • If the above problems are not resolved, and you also confirm that IntelliJ idea each configuration code is the place UTF-8 , the error file encoding is also the case, there is UTF-8 无 BOM another possibility that this situation may also occur: The project configuration file is problematic. The project encodes the configuration file in: /项目目录/.idea/encodings.xml . If you modify this file to make changes, if not, delete the .idea entire directory and restart IntelliJ idea to reconfigure the project.

Idea First Use

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.