Hello, i had a similar issue. I believe you have to install the python development workload
I can’t change the text editor colors for Python.
I can’t change the Visual Studio 2022 text editor colors for Python. I am missing many "Display Items:" such as Python Class color options.
I have gone to Tools/import and export settings wizard/ and reset all settings choosing a "General" collection of settings. (There were no Python settings to reset to).
Here is a screenshot of my Options dialog box, but I seem to be missing some Python "Display Items" as shown in a screen shot further down.
Options and settings for Python - Visual Studio (Windows) | Microsoft Learn
Describes a “Fonts and Colors Options” that looks like this:
My Python Environment is using Python3.11 from Python.org. I have another environment that was installed by Visual Studio: 3.9, but I'm not using it.
I am using Visual Studio Community 2022, Version 17.5.3
Python - Django support 17.0.22336.2
Python - Profiling support 17.0.22336.2
Python - VC Project Support 17.0.21344.1
Python with Pylance 17.0.22336.2
Thanks!
2 answers
Sort by: Most helpful
-
-
Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
2023-03-22T07:08:57.8633333+00:00 Hello @Robert Randolph ,
Thank you for taking time to post this issue in Microsoft Q&A forum.
After some tests and check, I can confirm that some items for setting colors of Python in VS Text Editor are missing. I have reported this issue.
I also strongly recommend submitting a ticket here: GitHub - Microsoft/PTVS.
Besides, here’s a similar thread: Python editor text-color in VS2022, please kindly vote for this thread.
Thanks for helping us make Visual Studio better.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.