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中的三重双引号突出显示为绿色而不是灰色
基础教程推荐
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
