Pycharm的简单配置

外观

Ctrl+滚轮改变字体大小:file -> Setting ->Editor-〉General -> Mouse

字体、颜色:file->settings->Editor

主题:file->settings->Editor->appearance->theme

注释颜色:File-->Settings-->Editor-->Color&Fonts-->LanguageDefaults-->Linecomment

工程和脚本

  • 写脚本:新建工程,右击目录,新建python文件。
  • 配置脚本模板:file->settings->Editor->file and code template->python script,在框中添加如下脚本:
#!/usr/bin/env python 
# -*- coding:utf-8 -*-

常用快捷键

  • ctrl + D:复制当前行  
  • ctrl + y:删除当前行  
  • shift + Enter:快速换行  
  • ctrl + [:跳到代码开头
  • ctrl + ]:跳到代码结尾
  • ctrl + /: 注释(选中多行后批量注释/取消注释)
  • tab: 缩进当前行(选中多行后批量缩进)  
  • shift + tab: 取消缩进(选中后可以批量取消缩进)  
  • ctrl + f:查找(全局加shift)  
  • ctrl + r:替换(全局加shift)  
  • shift + F10:运行
  • shift + F9:调试
  • F8: 单步调试(一行一行走,我的笔记本无效)
  • Ctrl + F8 : 在当前行加上断点/断点开关
  • Ctrl + N : 快速查找文件

自定义快捷键:file——>setting——>Keymap

Ref: https://www.jianshu.com/p/883f8343c7dbhttps://blog.csdn.net/TyuansushiT/article/details/81836732
https://blog.csdn.net/qq_40130759/article/details/79421242
https://www.cnblogs.com/sui776265233/p/10200809.html

猜你喜欢

转载自www.cnblogs.com/jessepeng/p/12307855.html
今日推荐