1.利用Pycharm设置虚拟环境
利用Pycharm设置虚拟环境简直不能再好用,由于python存在就近原则,其他方式创建的虚拟环境容易出现混乱导致需要卸载或者重新安装,使用Pycharm创建则格外方便。
2.不区分大小写匹配
Pycharm默认设置中对大小写敏感,对于不常用的方法有时候让人找不到就很着急。关闭大小写匹配则会简单很多。
3.安装好用的插件
具体根据应用领域不同安装的插件会有些许不同,这里只介绍一些通用且实用的插件。很多与JAVA IDE通用。
3.1 Rainbow csv
主要特点
-
以不同的彩虹色突出显示 .csv、.tsv 和其他分离文件中的列。
-
提供有关鼠标悬停列的信息。
-
检查 CSV 文件的一致性 (CSVLint)
-
将列与空格对齐并缩小(从字段中修剪空格)
-
执行类似 SQL 的 RBQL 查询。
3.2 Rainbow Brackets
作用:彩虹颜色的括号,清除分清括号个数,防止括号错乱。
快捷键设置
ctrl+alt+9 Replace the brackets around the cursors with ()
ctrl+alt+0 Replace the brackets around the cursors with ()
ctrl+alt+[ Replace the brackets around the cursors with []
ctrl+alt+] Replace the brackets around the cursors with []
ctrl+alt+shift+[ Replace the brackets around the cursors with {}
ctrl+alt+shift+] Replace the brackets around the cursors with {}
ctrl+alt+r Remove the brackets around the cursors
ctrl+alt+. Remove the brackets around the cursors and select the text within the brackets
ctrl+alt+, Select the brackets around the cursors and the text within the brackets
3.3 Tabnine
作用:人工智能推荐代码补全
官网地址
https://www.tabnine.com/