在Python脚本中突出显示注释

时间:2017-04-08 00:47:32

标签: python ide comments pycharm

我正在使用Pycharm。我经常使用# TODO,用蓝色突出显示评论。是否可以使用其他关键字突出显示其他颜色的其他评论?

例如,我希望能够使用# NOTE突出显示红色的重要音符。

1 个答案:

答案 0 :(得分:1)

要在Python脚本中为注释添加自定义突出显示,请转到File -> Settings -> Editor -> TODO并添加新模式:

enter image description here

根据需要配置:

enter image description here

Bright Red很难错过:

enter image description here

PyCharm HELP