用了6年的BCB6, 有个好功能居然现在才发现

Waiting4you 2008-08-27 04:19:03
不知道大家有没有发现,在代码里写:
// todo: 这里应该写什么代码...

这行字就会出现在To-Do List窗口里,下次打开此工程后直接又击To-Do List窗口里的这行字就能跳到对应的代码里。
这样我就可以在关闭BCB前把接下来的思路写到//todo:后面,然后第二天接着写了(偶第二天总是要花点时间来进入状态,有了这个进入状态的时间应该会大大减小了)。

偶的BCB6是装了cnPack的,不知道是cnPack的功能还是BCB6自带的功能。
...全文
386 43 打赏 收藏 转发到动态 举报
写回复
用AI写文章
43 条回复
切换为时间正序
请发表友善的回复…
发表回复
marklr 2008-09-05
  • 打赏
  • 举报
回复
好用吗
ccrun.com 2008-08-29
  • 打赏
  • 举报
回复
以前略用过这个功能。
guojiaqi163 2008-08-29
  • 打赏
  • 举报
回复
我才用一年,感觉上手挺快的
springworker 2008-08-29
  • 打赏
  • 举报
回复
学习
cczlp 2008-08-29
  • 打赏
  • 举报
回复
哦,CB自带的功能
慢两拍 2008-08-29
  • 打赏
  • 举报
回复
学习&&接分不亦乐乎^^
Waiting4you 2008-08-29
  • 打赏
  • 举报
回复
^-^
过客猫2022 2008-08-29
  • 打赏
  • 举报
回复
早就发现了,不过还不够方便!
li_fw 2008-08-28
  • 打赏
  • 举报
回复
听说过,但是一直没有用到。很多习惯都是这样的。习惯的一些操作方法可能不是最便利的。
MY_MCU 2008-08-28
  • 打赏
  • 举报
回复
这个功能不错,试试看.
Waiting4you 2008-08-28
  • 打赏
  • 举报
回复
[Quote=引用 27 楼 TR@SOE 的回复:]
汗………………我一直在用,以为大家也都知道………………
[/Quote]
%80的用户只用软件20%的功能,呵呵:-)
yf2100 2008-08-28
  • 打赏
  • 举报
回复
汗………………我刚才知道,以为大家跟我一样也都不知道………………
TR@SOE 2008-08-28
  • 打赏
  • 举报
回复
汗………………我一直在用,以为大家也都知道………………
springworker 2008-08-28
  • 打赏
  • 举报
回复
jf
constantine 2008-08-28
  • 打赏
  • 举报
回复
应该是自带的。不过由于装了cnpack后里面可以创建快照,所以都用快照搞定。
fbmsyu 2008-08-28
  • 打赏
  • 举报
回复
好!
顺便问一下我的cb2007 alt+f9不管用.必须点菜单是怎么回事?
感觉没有冲突的热键啊.
Waiting4you 2008-08-28
  • 打赏
  • 举报
回复
在BCB6的帮助里找到说明了:
To embed to-do list items in the source code:

You can add specific items directly within the source code in two ways:

Right-click in the Code editor and choose Add To-Do Item. Type the item in the Add To-Do List Item dialog box.
Type the item in the source code using the to-do item syntax.

To-do list items added directly into the source code relate to that specific unit module. You can add global to-do list items by right-clicking on the list and choosing Add.

To-Do Item syntax

Use the following syntax for to-do list items in your source code:

/* TODO|DONE [n] [-o<owner>] [-c<category>] : <to-do item text> */

The word TODO is changed to DONE to mark an item as completed or checked.

Where:

n is a priority that can be set to a number from 1 (highest) to 5 (lowest). Setting n to 0 means assign no priority. It is optional but must be specified right after the TODO or DONE keyword.
TODO is a keyword that indicates a to-do list item. When the item is completed, changes to DONE. Case is not important.
DONE indicates a completed to-do item. Replaces the word TODO when you check an item in the to-do list. Case is not important.
-o owner is the name of the person or group responsible for the item. It may contain spaces and is optional.

-c category is the type of item, such as a UI task. It may contain spaces and is optional.

Note: The to-do item text many not contain any character (or characters) that terminates a comment. .

To-do list items you enter in the source code are added to the list as you type them. The to-do item text is added to the list. The status, priority, and owner are added if you specified them in the code.

The order in which you specify owner and category is not important but the status (if included) must go first. The name of the module that contains the embedded item is automatically added to the to-do list. For single-line to-do list items, you can also precede the item with the // or /* comment delimiter.

For example:

/* TODO 2 -oNell: Implement stubbed out methods} */

Creates a priority 2 to-do list item for which Nell is responsible and which says 揑mplement stubbed out methods.?

/* Todo 1 -oSarah Alexander -cUI changes: Tell documentation about all changes/*

Creates a priority 1 to-do list item for which Sarah Alexander is responsible and which says 揟ell documentation about all changes?

When you put a check mark in the to-do list for the above item, the syntax in the source code changes to the following:

/* DONE 1 -oSarah Alexander -cUI changes: Tell documentation about all changes } */

You can also include to-do list items in a comment beginning with // in most cases. For example:

//TODO 1 -oBoss: Resolve must fix bugs

However, avoid nested to-do comments such as the following:

//This is a comment within a comment. {TODO: This won't work!!}

The nested to-do list item will not appear in the list in this case.
joy200699 2008-08-28
  • 打赏
  • 举报
回复
谢谢毛毛的说明,多学了一招!
i_love_pc 2008-08-28
  • 打赏
  • 举报
回复
在VC中看到//TODO:注释是自动生成的,以为只是个注释(貌似没有TODO List视图),
而在CB中发现一个To-Do List视图,却不知道怎么用(不会自动生成一个//TODO:注释)。
laowang2 2008-08-28
  • 打赏
  • 举报
回复
恩,接分。
加载更多回复(23)

552

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder 茶馆
社区管理员
  • 茶馆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧