doctorer
doctorer

Reputation: 1772

How do I highlight code in pycharm?

When I'm writing python script using pycharm, I quite often want to highlight a piece of code that I'm working on. e.g., at teh end of the day so I can find it quickly the next day, or if i want to examine another piece of code then return quickly to the section I was working on.

If I was writing a Word document, for example, I might temporarily highlight the text so I can find it quickly.

Is it possible in pycharm to use a temporary highlight or mark up in the code?

Upvotes: 1

Views: 6974

Answers (2)

zedfoxus
zedfoxus

Reputation: 37029

I'll just add an answer instead of only having the comment available. That way the question can be closed.

In your Python code, prior to your ending the day, go to the line that you want to mark and type in a comment like such:

#TODO ======= leaving for 3/Oct/2017 =======

PyCharm will highlight TODOs. You can also look for TODOs easily. There's an article about TODOs written by JetBrains that might help also: https://blog.jetbrains.com/pycharm/2013/06/working-with-todo-in-pycharm/

Previous answer of bookmarks is also a good idea.

Upvotes: 5

aphrid
aphrid

Reputation: 599

You might be interested in looking at JetBrains bookmarks, which let you, as its name implies, bookmark code for ease of access later down the line.

https://www.jetbrains.com/help/idea/managing-bookmarks.html

Upvotes: 1

Related Questions