一、主题+字体
- 主题:One Dark Pro(Flat) 字体:firacode
- 效果
- 主题
- 字体
-
在环境中安装字体
sudo apt update && sudo apt install fonts-firacode
-
在vscode中设置字体
"editor.fontFamily": "'Fira Code'", "editor.fontLigatures": true
-
修改注释的颜色
cd ~/.vacode/extensions/zhuangtongfa. #补全,版本不一样 cd themes sudo gedit OneDark-Pro-flat.json
- 原先为灰色,目前改为:#708090
- 附上搜索的内容:comment, punctuation.definition.comment,1882行
二、autopep8
-
pip 安装的是 1.6 版本
a. -
autopep8 要求
a. python>=3.8
b. autopep8 > 1.7
c. -
升级 autopep8
a. pip install --upgrade autopep8 -
a. --max-line-length=150 --ignore=E402
三、源代码管理 git 上传报错
“Git:fatal:unable to accesshttps://github.com/…':Failed toconnect to github.com port 443 after 21086 ms:Timed out”
- 问题: 网络问题
- 解决方法:
- 关梯子
- 取消全局代理:
git config --global --unset http.proxy git config --global --unset https.proxy