pycharm

pycharm基本使用
選擇環境
在設置中>Project Interpreter>show all>左下角加號

使用pycharm安裝python的第三方模塊
在設置中>Project Interpreter>左下角加號>輸入要安裝的模塊

菜單字體大小設置
設置中appearance>override default fonts by

設置字體大小
設置中editor > font中設置

設置文件編碼
editor>file encodings>全部設置爲utf-8

修改背景顏色
editor>color Scheme>general

設置tab縮進
setting>editor>code style>python

關閉自動更新
appearance & behavior > system setings > updates

添加文件頭信息
editor>file and code Templates>python script
添加如下內容
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : sunlizhao
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}

顯示行號
editor > general > appearance >show line numbers

導入導出你自定義的pycharm的配置
export strrings(導出)
import strrings(導入)

常用的快捷鍵
ctrl + d 複製當前行
ctrl + e 刪除當前行
shift + enter 快速換行
ctrl + / 快速註釋
tab 縮進當前行(選中多行後批量縮進)
shift + tab 取消縮進
ctrf + f 查找
ctrl + h 替換
ctrl + (-)減號 摺疊當前代碼段代碼
ctrl + (+)加號 展開當前代碼段
ctrl + shift + 減號 摺疊當前文件中的所有代碼段
ctrl + shift + 加號 展開當前文件中的所有代碼段



常用操作指南
複製文件路徑 左側文件列表右鍵選中文件>copy path
查看結構 ide左側邊欄,structure 查看當前項目結構

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章