python - 如何在Pycharm中使双下划线显示为两个单独的下划线?

标签 python pycharm

我不知道如何在 PyCharm 中将双下划线(即双下划线)显示为 Python 中的两个单下划线。

我已禁用字体连字

Editor -> Font,

Editor -> Color Scheme -> Color Scheme Font,

Editor -> Color Scheme -> Console Font

对于所有这三个,我使用 Consolas。

基本上,我想实现这样的目标:

 _ _class_ _ (without the spaces, of course).

我现在拥有的是:

__class__.

我原以为这很容易,但我似乎无法在网上找到我的问题的直接答案。

最佳答案

您可以安装名为 predawn 的主题。其字体格式显示 dunder 彼此分开,如下所示:

enter image description here

关于python - 如何在Pycharm中使双下划线显示为两个单独的下划线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56902761/

相关文章:

python - 将聚类结果绘制并可视化为网络图

python - Python 和 R 词汇表的比较

Python - 通过命令行将参数传递给模块函数

python - 无法将matplotlib安装到pycharm

python - 访问 Python 字典中的 Unicode 值

python - 在 python 正则表达式中将 1 个单词限制为区分大小写,将其他单词限制为不区分大小写 | (管道)

pycharm - 如何更改 PyCharm 代码编辑器的背景颜色?

python - PyCharm 中的字典自动完成?

python - Pycharm:如何更改所有颜色包括项目树

git - 从本地库创建远程库,Pycharm