0%

安装并激活Pycharm

安装 && 激活

由于JB的尿性问题,此篇幅没有激活破解

*请移步 –> * Jetbrains系列产品2019.1.4最新激活方法

*或者移步 –> * Pycharm 2019版激活

Linux添加图标

下载解压之后,移到/opt/文件夹,在applications创建图标
sudo leafpad /usr/share/applications/Pycharm.desktop

  • 写入
    1
    2
    3
    4
    5
    6
    7
    8
    9
    [Desktop Entry]
    Type=Application
    Name=Pycharm
    GenericName=Pycharm3
    Comment=Pycharm3:The Python IDE
    Exec="/opt/pycharm-201x.x.x/bin/pycharm.sh" %f
    Icon=/opt/pycharm-201x.x.x/bin/pycharm.png
    Terminal=pycharm
    Categories=Pycharm;

配置

  • Pycharm添加PEP8代码规范

打开Pycharm→File→settings→Tools→External Tools→添加
Name:PEP8(名字随便)
Tools settings里面添加

1
2
3
4
5
6
7
Programs:autopep8  # 你需要用pip安装autopep8

Parameters:--in-place --aggressive --aggressive $FilePath$

Working directory:$ProjectFileDir$

Output filters:$FILE_PATH$\:$LINE$\:$COLUMN$\:.*

  • Pycharm配置Pylint(不在虚拟环境)
    Name:Pylint(名字随便)

Tools settings里面添加

1
2
3
4
5
6
7
Programs:pylint  # 你需要用pip安装pylint

Arguments:--reports=n --disable=C0103 $FilePath$

Working directory:$FileDir$

Output filters:$FILE_PATH$:$LINE$:

  • Pycharm配置Pylint(多个虚拟环境下)
    Name:Pylint(名字随便)

Tools settings里面添加

1
2
3
4
5
6
7
8
Programs:$PyInterpreterDirectory$/pylint   # 你需要用pip安装pylint
# $PyInterpreterDirectory$/pylint后面有一个空格

Arguments:$FileRelativePath$

Working directory:$FileDir$

Output filters:$FILE_PATH$:$LINE$:

  • Pycharm_2017.1.4版本

点击Output Files→添加

如需终端启动Pycharm,写入环境变量

1
2
3
4
5
vi .bashrc

alias pycharm="'/opt/pycharm-2018.x.x/bin/pycharm.sh' %f"

source ~/.bashrc

插件

VueJs

File -> Settings -> Plugins -> Install JetBrains plugin... -> Vue.js

Bash

File -> Settings -> Plugins -> Install JetBrains plugin... -> BashSupport

汉化

resources_cn.jar百度云(密码:xbe6)复制到 ./lib 目录下,删除resources_en.jar

欢迎关注我的其它发布渠道