pycharm常用设置

pycharm常用设置:

file -> Setting ->Editor

  1. 设置Python自动引入包,要先在 >general > autoimport -> python :show popup

快捷键:Alt + Enter: 自动添加包

  1. “代码自动完成”时间延时设置

Code Completion -> Auto code completion in (ms):0 -> Autopopup in (ms):500

  1. Pycharm中默认是不能用Ctrl+滚轮改变字体大小的,可以在〉Mouse中设置

  2. 显示“行号”与“空白字符”

Appearance -> 勾选“Show line numbers”、“Show whitespaces”、“Show method separators”

  1. 设置编辑器“颜色与字体”主题

Colors & Fonts -> Scheme name -> 选择"monokai"“Darcula”

说明:先选择“monokai”,再“Save As”为"monokai-pipi",因为默认的主题是“只读的”,一些字体大小颜色什么的都不能修改,拷贝一份后方可修改!

修改字体大小

Colors & Fonts -> Font -> Size -> 设置为“14”

  1. 设置缩进符为制表符“Tab”

File -> Default Settings -> Code Style

-> General -> 勾选“Use tab character”

-> Python -> 勾选“Use tab character”

-> 其他的语言代码同理设置

  1. 去掉默认折叠

Code Folding -> Collapse by default -> 全部去掉勾选

  1. pycharm默认是自动保存的,习惯自己按ctrl + s 的可以进行如下设置:

General -> Synchronization -> Save files on frame deactivation 和 Save files automatically if application is idle for … sec 的勾去掉

Editor Tabs -> Mark modified tabs with asterisk 打上勾

9.>file and code template>python scripts

#!/usr/bin/env python

-- coding: utf-8 --

“”"
title = “KaTeX parse error: Expected group after '_' at position 15: Package_name" _̲_author__ = "USER”
mtime = “$DATE”

code is far away from bugs with the god animal protecting

I love animals. They taste delicious.
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━┓
┃ 神兽保佑 ┣┓
┃ 永无BUG! ┏┛
┗┓┓┏━┳┓┏┛
┃┫┫ ┃┫┫
┗┻┛ ┗┻┛
“”"

10 python文件默认编码

File Encodings> IDE Encoding: UTF-8;Project Encoding: UTF-8;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值