Modification of the interface style of the pycharm editor in Python

Teach you to configure your own PYcharm interface color style, PYthon learning essential GO

The first step is to change to a dark background to protect eyesight

The default background of PyCharm is white, which is more dazzling. It's better to change to a darker one, and it feels cooler.

Modification method: enter PyCharm, File ==>setting==>

 

Appearance&Behavior ==> Appearance, find the Theme item on the right and replace it with Darcula.

 

 

The second step is to modify the font and change to a better-looking font

Modification method: Enter PyCharm, File ==> setting==>Editor ==> Colors & Fonts ===> Font, the Schema on the right can choose the font configuration, and Monokai is recommended here. The following Primary font is the specific font used, but it cannot be modified directly. You need to first click Sava As... on the upper right side, which is equivalent to copying a copy of the current font configuration, and then modifying it on the copy.

After clicking Sava As..., there will be a pop-up box asking you to confirm the name of the new font configuration, the default is Monokai copy, we just just OK.

 

 

Step 3: Modify the font size and spacing

On the basis of the second step, select the font to adjust the size and spacing of the font. This can be set according to personal habits. I like the font size to be bigger, so the font size is 24 and the spacing is 1.1.

 

 

Step 4: Adjust the color

note! This step is critical! Other online tutorials only have the first three steps! I think only the first three steps are not perfect enough, why?

Take a look at the picture below, this is a specific code example.

 

 

Is there a problem? The comments in the Python code are gray in this theme, and the keyword parameters of the method are purple. These two colors are not clearly visible on a dark background! Although it is not very serious, if you want to change it, try to do it perfectly!

Solution: File ==> Editor ==> Colors & Fonts ===> Python, find "Line Comment" in the right panel, and you can change the color in the Foreground column on the right. You can select the color in the pop-up color selection box, or you can directly enter the color value. Here I chose bright green.

 

Similarly, the color of keyword argument can be changed by modifying the color of "keyword argument".

An Xian's Knowing ID: Bug Maker

Guess you like

Origin blog.csdn.net/weixin_45293202/article/details/115247938