随笔 - 17,  文章 - 0,  评论 - 0,  阅读 - 4964

一、settings设置

 

Eile Edit View Navigate Code Refactor 
Run 1001s VCS Window Help pythonProiect 
x 
New Project... 
Alt+lnsert 
New... 
New Scratch File 
Ctrl+Alt+Shift+lnsert 
Save As... 
Open Recent 
Close Project 
Ctrl+Alt+S 
Settings... 
I e rope les 
Local History 
Save All 
Reload All from Disk 
Invalidate Caches... 
Manage IDE Settings 
New Projects Setup 
Save File as Template... 
Export 
Erint... 
Add to Favorites 
nello.py 
'abc' 
'abcd' 
bianliang.py 
float (input( ' 
float (input( ' 
Ctrl+S huawei 
iphone) 
Ctrl + Alt + Y 
Power Save Mode 
Exit 
o 
T ODO O Problems 
ICI Edit application settings 
E Terminal 
e python Packages 
Python Console 
CRLF UTE-8 
Event Log 
4 spaces Python 3.8 
16:00 
IMI 
2022/1/3

 

 

1.搜font 设置字体

 

Settings 
Q• font 
v Appearance & Behavior 
Appearance 
Keymap 
v Editor 
v General 
Editor Tabs 
Font 
v Color Scheme 
Color Scheme Font 
Console Font 
vcs 
Reader Mode 
Advanced Settings 
Editor Font 
JetBrains Mono 
Font: 
Size: 
18 
Line height: 
1.2 
Enable ligatures O 
See line height and ligatures also in Reader mode 
Restore defaults 
Typography Settings 
PyCharm is an Integrated 
Development Environment (IDE) designed 
to maximize productivity. It provides 
clever code completion, static code 
analysis, and refactorings, and lets 
you focus on the bright side of 
software development making 
it an enjoyable experience. 
Default : 
abcdefghijklmnopqrstuvwxyz 
ABCDEFGHIJKLMNOPQRSTUVWXYZ 
0123456789 (){H] 
Bold: 
abcdefghijklmnopqrstuvwxyz 
ABCDEFGHIJKLMNOPQRSTUVWXYZ 
0123456789 
Ill > I = 
Enter any text to preview 
OK 
Cancel 
Applv

 

2.Keymap------快捷键

 

Settings 
> Appearance & Behavior 
Keymap 
v Editor 
v General 
Auto Import 
Appearance 
Breadcrumbs 
Code Completion 
Code Folding 
Console 
Editor Tabs 
Gutter Icons 
Postfix Completion 
> Smart Keys 
Code Editing 
Font 
v Color Scheme 
General 
Language Defaults 
Color Scheme Font 
Console Font 
Code With Me 
Console Colors 
Debugger 
Diff & Merge 
Keymap 
Windows 
Get more keymaps in Settings I Plugins 
Q. 
> 
Editor Actions 
Main Menu 
Tool Windows 
External Tools 
Version Control Systems 
External Build Systems 
Macros 
Quick Lists 
Other 
OK 
Cancel 
Apply

二、常用快捷键

 

1、Ctrl + Enter:在下方新建行但不移动光标;

 

2、Shift + Enter:在下方新建行并移到新行行首;

 

3、Ctrl + /:注释(取消注释)选择的行;

 

4、Ctrl + Alt + L:格式化代码(与QQ锁定热键冲突,关闭QQ的热键);

 

5、Ctrl + Shift + +:展开所有的代码块;

 

6、Ctrl + Shift + -:收缩所有的代码块;

 

7、Ctrl + Alt + I:自动缩进行;

 

8、Alt + Enter:优化代码,提示信息实现自动导包;

 

9、Ctrl + Shift + F:高级查找;

 

10、Alt + Shift + Q:更新代码到远程服务器;

 

 11、Ctrl + N : 查找所有的类的名称

 

 12、Ctrl + Shift + N:  查找项目中的任何文件

 

 13、Ctrl+Y:删除行

 

 14、Ctrl+D:复制行

 

三、注释

print('hello')  #print('hello')

#注释的作用:1.不让解释器执行,注释那句话

                      2.代码说明

注释分类:1.单行注释      #

                 2.多行注释  '''   内容    '''

 

 

四、格式化

 1.Ctrl + Alt + L:格式化代码

format* 
ent 
Keymap 
Windows 
Get more keymaps in Settings Plugins 
Editor Actions 
Paste as Plain Text 
Fill Paragraph 
Main Menu 
Export Files or Selection to HTML... 
Copy as Rich Text 
Paste as Plain Text 
Fill Paragraph 
Appearance 
Details in Tree View 
• 40rma 
• :forma 
XML Actions 
Convert Schema... 
x 
Ctrl+AIt+Shift+ 
Ctrl+AIt+Shift+ 
Ctrl+Alt+Shift+ 
Cancel

 2.当前项目所依赖的解释器

Settings 
> Appearance & Behavior 
Keymap 
> Editor 
Plugins 
> Version Control 
v Project: pythonPr0ject1 
Python Interpreter 
Project Structure 
> Build, Execution, Deployment 
> Languages & Frameworks 
> Tools 
Advanced Settings 
Project: pythonProject1 Python Interpreter E 
Python Interpreter: Python 3.8 
Package 
certifi 
charset-normalizer 
idna 
pip 
requests 
setuptools 
urll ib3 
Version 
2021.10.8 
2.0.7 
3.3 
21.3.1 
226.0 
49.2.1 
1.26.7 
Latest version 
2021.10.8 
A 20.9 
3.3 
21.3.1 
226.0 
A 60.2.O 
1.26.7

 

3.+”扩展库文件 ------可显示并选择库文件的版本

Settings 
> Appearance & Behavior 
Keymap 
> Editor 
Plugins 
> Version Control 
v Project: pythonProject1 
Project Structure 
> Build, Execution, Deployment 
> Languages & Frameworks 
> Tools 
Advanced Settings 
Project: pythonProject1 Python Interpreter 
python Interpreter: Python 38 
ac age 
charset-normalizer 
idna 
PIP 
requests 
setuptools 
urllib3 
Version 
2021.10.8 
2.0.7 
3.3 
21.3.1 
226.0 
492.1 
126.7 
Latest version 
2021.10.8 
3.3 
21.3.1 
226.0 
A 602.0 
126.7

posted on   粽子吖  阅读(34)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示