pycharm set up a development template / font size / background color (3)

A .pycharm set the font size / style

pycharm set the font size / style

 

    Select File -> Setting -> Editor -> the Font , can be seen above the interface, you can freely adjust the font size to your liking, font style, text, line spacing, and then set the following real-time preview window, adjust more convenient, very simple (above this is my own configuration).

 

Two .pycharm set the background color

pycharm set the background color

 

    Select File -> setting -> Editor -> Color Scheme - after> General, you can see above interface, you can according to their preferences Scheme, a total of five theme styles, set the following real-time preview window, there is a different theme styles different colors, adjust are more convenient, very simple (I chose the theme Monokai).

 

Three .pycharm development template settings

    Many small partners might wonder what is the template, why should set the template? Template is a common format, if pycharm set python template, then every time you create a python file contents will be automatically included in the template, for example:

    python3 ASCII encoding is used by default, if only contains English is no problem, once the Chinese garbled, the solution: the need to add at the beginning of the file UTF-8 encoding, support for Chinese, as follows:

    The question is: Did you create a python file to write a thousand times a thousand times above two lines of code?

    I said fine bars: Ctrl + C / Ctrl + V very quickly.

Sad expression

    For such problems, the embodiment is provided PyCharm template, the specific setting methods: Select File -> setting -> Editor -> Color Style -> File and Code Templates -> select a template type setting file corresponding to the style, the interface can be seen as first select the file type on the left, then the right to edit the template style, free to play, very simple.

 

pycharm set header templates

    Free to create a python file, the effect is as follows:

# ! Usr / bin / env Python 
# - * - Coding: UTF-8 _ * - 
"" " 
@author: Why grief 
@Blog (personal blog address): shuopython.com 
@WeChat Official the Account (micro-channel public number): Ape said Python 
@Github: www.github.com 
 
@file: python_test.py 
@Motto:! short step a thousand miles, no small streams converge into a wonderful required the ocean, the program of life unremittingly accumulate . 
"" "

 

 

(One line of code did not knock)

 

If you are interested in what I have this template can copy and paste directly to the underlying code can be set to pycharm:

 

 

 

you may also like:

    1.pycharm installation process

    2.pycharm / anaconda / python three differences and relations

    3.python code comments

 

    Reproduced please specify: ape say Python  >> PyCharm set up a development template / font size / background color

 

Technical exchanges, business cooperation please contact bloggers
Scan code or search: ape say python
No public python tutorial
Ape say python
No. sweep the micro-channel public concern

Guess you like

Origin www.cnblogs.com/shuopython/p/12016019.html