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中的三重双引号突出显示为绿色而不是灰色


- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01