How to set IntelliJ IDEA themes and fonts

1 Introduction

In the blog post " IntelliJ IDEA's HelloWorld Project Creation and Related Configuration File Introduction ", we have created the first Java project HelloWorld with IntelliJ IDEA, as shown in the following figure:

1

Looking at the picture above, have you noticed any problems? For example, are the fonts on the entire interface too small? I don't know how everyone feels, but bloggers are really dizzy when they see such a small font! Therefore, next, let's try to reset the theme and font of IntelliJ IDEA together to see what kind of mode we are most comfortable with.

2 Theme modification

2.1 Interface theme modification

2

As shown in the figure above, click one by one Files -> Settingsto enter the following interface:

3

  • Label 1: Theme selection area;
  • Annotation 2: Darcula, IntelliJ, and Windows, three themes.

As shown in the figure above, we locate the Appearance & Behavior > Appearanceinterface. On Windows systems, IntelliJ IDEA provides three themes by default: Darcula, IntelliJ, and Windows. Among them, except for Darcula, which is a theme with a black background, the other two are themes with a white background. Here, take the Windows theme as an example to demonstrate the modified effect:

4

As shown in the figure above, this is the effect after selecting the Windows theme and clicking Apply, which is a pure white theme.

2.2 Theme modification in the code editing area

5

  • Label 1: Theme selection area;
  • Annotation 2: Default and Darcula, two themes.

As shown in the figure above, we locate the Editor > Colors & Fontsinterface. On Windows systems, IntelliJ IDEA provides two editing area themes by default: Default and Darcula. Among them, Default is the default theme; Darcula is the black theme. Here, we take the Darcula theme as an example to demonstrate the modified effect:

6

As shown in the figure above, this is the effect after selecting the Darcula theme and clicking, which is the theme Applyof the black editing area.

Through the above demonstration, we already know that both the interface and the theme of the editing area can be modified. How to modify it depends on our mood! For bloggers, they prefer the Darcula theme, so in the following content, we will demonstrate under the Darcula theme.

3 Font modification

3.1 Interface theme font modification

7

  • Note 1: Override the default font (required);
  • Note 2: The specific value of the font size can be modified.

As shown in the figure above, we locate the Appearance & Behavior > Appearanceinterface. If we are sure to modify the font size, the one  shown in mark 1Override default fonts by XXX is a required option. Otherwise, the font cannot be modified, because IntelliJ IDEA does not recommend modification by default; mark 2  shows as We can specifically modify the value of the font size. Here, select Size14 to demonstrate the modified effect:

8

As shown in the figure above, this is the effect after selecting Size14 and clicking Apply. Obviously, the fonts of the interface theme have obviously become much larger.

Here, there is one thing to pay attention to, that is: some fonts contain Chinese, and some fonts do not contain Chinese. Under normal circumstances, countries that use English do not need to worry about garbled characters, but we do! If the font we choose does not contain Chinese, there may be garbled problems like Koukoukou in many places. For example, Courier Newand Monacois a pure English font, but Microsoft YaHeia font that includes Chinese.

3.2 Font modification in code editing area

9

  • Note 1: Save as theme (required);
  • Note 2: Only display monospaced fonts;
  • Note 3: The value of the specific size of the font;
  • Annotation 4: line width (the distance between lines);
  • Label 5: Second font;
  • Callout 6: Example display area for font, size, and line width.

As shown in the figure above, we locate the Editor > Colors & Fonts > Fontinterface, and the one  shown in mark 1Save As means that we need to copy another edit area theme before we can modify it, because IntelliJ IDEA cannot directly modify the font on the default code template; mark 2  shows indicates Show only monospaced fontsthat only the monospaced fonts on the system will be displayed, when unchecked, all installed fonts on the system will be displayed. Mark 5  indicates the Secondary fontsecond font, because the encoding font of IntelliJ IDEA is divided into "first font" and "second font", when some characters cannot be supported by the first font, the second font will be used automatically support. Here, we choose Size16 to demonstrate the modified effect:

10

As shown in the figure above, this is the effect after selecting Size16 and clicking Apply. Obviously, the fonts of the theme in the editing area have obviously become much larger.

3.3 Console output font modification

11

As shown in the figure above, we locate the Editor > Colors & Fonts > Console Fontinterface. After careful observation, we will find that this interface Editor > Colors & Fonts > Fontis exactly the same as the interface, so we will not introduce it again! Here, we choose Size14 to demonstrate the modified effect:

12

As shown in the figure above, this is the effect after selecting Size14 and clicking Apply. After running the program, the output font of the console is displayed larger and clearer.


———— ☆☆☆ ——Back-  >The easiest IntelliJ IDEA tutorial in history<- Contents——  ☆☆☆ ————

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810244&siteId=291194637