如何在 VS 代码中突出显示 VS 的 python 语法?

编程入门 行业动态 更新时间:2024-10-24 08:23:45
本文介绍了如何在 VS 代码中突出显示 VS 的 python 语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

似乎带有 Python 工具的 VS 社区比带有Python"的 VS Code 具有更好的语法突出显示,由 Don Jayamanne 编写.正如您在附图中看到的,VS 社区以 ¿ 紫色高亮显示?导入的包和用于类的浅蓝色,而 VS 代码则没有.

It seems like VS Community with python tools has a better syntax highlighting than VS Code with "Python" by Don Jayamanne. As you can see in the picture attached, VS Community highlights in ¿purple? the packages imported, and lightblue for classes while VS code just don't.

推荐答案

我遇到了同样的问题,一些 VS Code 主题至少不支持语法高亮显示.我尝试过 Ruby 和 Python,我使用的主题是 Dark(Visual Studio).

I ran into the same issue and some VS Code themes are not supporting syntax highlighting atleast for me. I tried with Ruby and Python and the theme I was using was Dark(Visual Studio).

更改为暗+(默认暗)对我有用.

Changing to Dark+ (Default Dark) did the trick for me.

转到首选项 -> 颜色主题,然后选择暗色+(默认暗色) 或类似内容.

Goto Preferences -> Color Themes and choose Dark+(Default Dark) or something similar.

希望有帮助.

这篇关于如何在 VS 代码中突出显示 VS 的 python 语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 12:50:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1409360.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语法   代码   如何在   python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!