A .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
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:
# !usr/bin/env python # -*- coding:utf-8 _*-
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.
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.
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:
# !usr/bin/env python # -*- coding:utf-8 _*- """ @Author:何以解忧 @Blog(个人博客地址): shuopython.com @WeChat Official Account(微信公众号):猿说python @Github:www.github.com @File:${NAME}.py @Time:${DATE} ${TIME} @Motto:不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累! """
you may also like:
1.pycharm installation process
2.pycharm / anaconda / python three differences and relations
Reproduced please specify: ape say Python >> PyCharm set up a development template / font size / background color