TODO comments for Python in VS 2022

Gus 1 Reputation point
2022-08-27T10:16:05.307+00:00

Hi Guys, my question is so easy, at least in terms of common words, that I can't seem to get an answer from Google. Can you somehow create TODO comments in VS 2022 when authoring Python files? My TODO comments created in cs files show up properly in the Task List, but I had no luck with Python.

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2022-08-28T17:51:05.757+00:00

    Hi @Gus

    Try using TODO Tree found at https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree to track TODO comments in python.

    ------------------------------------------------------

    If this is helpful please accept answer.

    1 person found this answer helpful.

  2. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2022-08-29T06:40:31.137+00:00

    Hi @Gus ,

    Welcome to Microsoft Q&A forum.

    The default tokens, for example TODO, are available only for the C/C++, C#, and VB languages. You need to create your own tokens for other programming languages for example Python(See this doc: Custom tokens).

    But based on my test, in VS 2019, my custom token works well for Python, but it fails in VS 2022. I have reported this issue here, you can follow up that thread for more information too.

    Best Regards,
    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.
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.