Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
[Solved] Lazarus - How to use the "ToDo" function in the IDE?
Delphi, Lazarus, Free Pascal
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2860
Topic starter
March 11, 2015 7:49 AM
While snooping around in the Lazarus Pascal IDE, I ran into the "ToDo List" (menu: "View" - "ToDo List") and wondered how this would work.
Appears that you can simply add a comment in your code, some examples:
{TODO : Todo text 1}
//TODO : Todo text 2
//TODO: Todo text 3
You can comment with accolades ({ and }) or slashes (//), followed by the word "TODO".
You can have a space before and after todo, as long as a colon follows.
These comments (one line) will now appear in the ToDo List.
Clicking one of the lines in the ToDo list will jump straight to the comment in your code.