Triple double quotes in pycharm highlights as green and not grey(pycharm中的三重双引号突出显示为绿色而不是灰色)
问题描述
我正在使用 pycharm,它以绿色而不是灰色的三个双引号显示整个代码块(注释部分的颜色).
I am using pycharm and it shows the entire block of code in triple double quotes in green and not in grey color (color for commented section).
但是当我在 sublime 中使用时它是完美的.我怎样才能让它变灰?
But it perfect when I am using in sublime. How can I make it turn grey?
"""
It is a really long string
triple-quoted strings are used
to define multi-line strings
"""
推荐答案
Preferences => Editor => Colors &字体 => Python => Docstring
将其设为与您通常的注释颜色相同的颜色.
Preferences => Editor => Colors & Fonts => Python => Docstring
Make this the same colour as your usual comment colour.
默认情况下,文档字符串显示为不同的颜色,因为它们不是通常的注释.
By default docstrings appear as a different colour as they aren't usual comments.
这篇关于pycharm中的三重双引号突出显示为绿色而不是灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:pycharm中的三重双引号突出显示为绿色而不是灰色


基础教程推荐
- 包装空间模型 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01