pycharm

xiaoxiao2025-12-03  3

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 查看当前项目结构
转载请注明原文地址: https://www.6miu.com/read-5040282.html

最新回复(0)