1. 设置运行当前程序:
File——Settings——Keymap——Other——Run context configuration.
2. 设置调试当前程序:
File——Settings——Keymap——Other——Debug context configuration.
3. 主题设置
File——Settings——Appearance & Behavior——Appearance.
4. 插件下载
File——Settings——Pluguins——Marketplace.
5. 程序选中高亮设置
File——Settings——Editor——Color Scheme——General——Code——Identifier under caret/Identifier under caret (write)——Background
文本光标下的标识符(写入).
6. 程序滚动条高亮
File——Settings——Editor——Color Scheme——General——Code——Identifier under caret/Identifier under caret (write)——Error stripe mark.
7. print快速使用
在一个字符串或其他对象后边直接输入.print,可快速打印该字符串。
8. 跨行选取相同单词
Alt + J选择相同单词,可以同时编辑多行,Alt + Shift + J取消选择。
9. iter快速遍历列表
iter可实现快速补全遍历数组的代码。
10. 快速将一列文字格式化为数组
按住Alt + Shift键并拖动鼠标左键,选择列,然后输入引号,使用HOME、END键跳转到开头和结尾,实现快速将字符串格式化为列表。
11. 在pycharm中书写程序的时候,有时候不注意格式,会造成程序中有很多的警告,这时候,pycharm已经为我们开发了一个快速规整程序格式的入口,快捷键为Ctrl + Alt + L。
12. 选中代码显示
改变选中代码的背景颜色,File——Settings——Editor——Color Scheme——General——Editor——Guides——Selection background.
本文介绍了PyCharm中的一些实用设置和快捷操作,包括运行和调试配置、主题定制、插件下载、代码高亮、滚动条标记、快速打印、多行编辑、快速遍历列表以及代码格式化。通过这些技巧,可以显著提升PyCharm的使用效率,让编程更加便捷。
3万+

被折叠的 条评论
为什么被折叠?



